PDA

View Full Version : Turn to face resizing


arty-fishL
04-01-2011, 08:15 PM
I am having a real problem in a game I am making. I need to extensively use the "turn to face" feature, but it keeps resizing the objects randomly. Sometimes when it does "turn to face" it resizes the object, that is turning, differently along different dimensions. Sometimes it just goes too far and resizes it to take up the whole screen. Its really annoying.

Any idea what is wrong? How to fix it? How to avoid it? Alternatives to turn to face? Any help is greatly appreciated. :confused::confused::confused::(

debussybunny563
04-01-2011, 08:36 PM
I have the same problem (and I have had it in previous games), but it doesn't happen often for me. I don't believe there's any solution other than figuring out how many revolutions it would take for the object to "face" the other object, and then have it turn that many revolutions.

arty-fishL
04-02-2011, 05:00 AM
:( It happens frequently for me, probably mainly because I am getting up to 20 objects at a time to turn to face together 17 times a second.

debussybunny563
04-02-2011, 10:22 AM
I tried using arcosine to work it out, but it doesn't work for some reason. For the moment I'm using "point at" and setting onlyAffectYaw to true, so it is in effect a "turn to face" method. Unfortunately, it still has the same bug as a turn to face method as well. =(

arty-fishL
04-02-2011, 10:43 AM
:D:D:D I am now using "constrain to face", Im not sure what the difference is, but it seems to work the same. It does the job without resizing the thing it's turning. I thought constrain meant force, so force to face / turn to face - what's the difference?

debussybunny563
04-02-2011, 10:58 AM
Constrain to face is instant, it doesn't give you the slow turn. Kind of like what setting isShowing to true does compared to setting opacity from 0% to 100%, it doesn't give you the gradual feel.

arty-fishL
04-02-2011, 03:47 PM
Constrain to face is instant, it doesn't give you the slow turn. Kind of like what setting isShowing to true does compared to setting opacity from 0% to 100%, it doesn't give you the gradual feel.Aaahh, well I didnt notice that, because as I said above it does the turn to face thingy 17 times a second, so constrain to face works for me in this case then anyway.

debussybunny563
04-02-2011, 04:09 PM
Constrain to face is useful when you want the object to continually follow another object (useful for an AI, hint, hint ;) ). 17 times in 1 second? lol

Anyway, I'm finding that it works very well for an AI as it doesn't cause the resizing glitch. All you have to do is set the duration to something small, in my case, 0.01 seconds.

arty-fishL
04-02-2011, 04:50 PM
That is exactly what I am doing, AI and 0.01 seconds (but then there is an added pause to decrease lag and something else bringing it to 17 rather than 100).

Thanks for the insight and all, glad we could come to a kind-of fix.

reuben2011
04-03-2011, 04:35 PM
I haven't had any resizing issues with turn to face. Could you post an example arty?

arty-fishL
04-03-2011, 07:51 PM
Not really, sorry; I dont yet want to post the thing Im working on. If you make it do turn to face on multiple objects together rapidly, making the objects move might increase the chance, it should happen after a couple of minutes at least.

reuben2011
04-04-2011, 12:27 AM
It's like the bug that sometimes throws an error when you put multiple change opacity methods in a "do together." I can't wait until they make a stable version of Alice 3.

Mr Kidnapper
04-16-2011, 01:59 PM
Perhaps it's a copypasta bug? I had noticed that sometimes when I copied large methods that some of the values changed. Instead of "5 revolutions" it became "5 seconds" or sometimes "5 meters." An interesting bug.