Alice Community

Alice Community (
-   Bugs and Troubleshooting (
-   -   Turn to face resizing (

arty-fishL 04-01-2011 07:15 PM

Turn to face resizing
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 07:36 PM

[SIZE="2"]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.[/SIZE]

arty-fishL 04-02-2011 04: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 09:22 AM

[SIZE="2"]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. =([/SIZE]

arty-fishL 04-02-2011 09: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 09:58 AM

[SIZE="2"]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.[/SIZE]

arty-fishL 04-02-2011 02:47 PM

[QUOTE=debussybunny563;33331][SIZE=2]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.[/SIZE][/QUOTE]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 03:09 PM

[SIZE="2"]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.[/SIZE]

arty-fishL 04-02-2011 03: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 03:35 PM

I haven't had any resizing issues with turn to face. Could you post an example arty?

arty-fishL 04-03-2011 06: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-03-2011 11:27 PM

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 12: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.

All times are GMT -5. The time now is 11:48 PM.

Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.