![]() |
scripting question
Ok i made a right outline of a moving engine in whihc up is forward, down is backwards, and left and right are turn (8 directions all together) (while the variable this.type=1 they will continue to move foward unless its set back to 0 (by reversing))
now how would i make a delay so it would only afect the rate at which they can turn? i tried tiemout but that afects their constant moving pace, i don't want them to stop moving while they turn. |
Maybe you could implement a turning speed variable?
|
You just need to add/subtract less from the players X/Y when they are pushing the left or right arrows then you are now. That will make them turn slower.
|
8 directions = more advanced than unlimited directions...
|
what do you mean more advanced?
o and i used a turn variable that goes up with the timeout. thanx. that was alot easier than i thought lol. |
| All times are GMT +2. The time now is 02:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.