Page 1 of 1

make actor fire in last direction standing

PostPosted: Sun Aug 13, 2006 6:19 pm
by Zehper48
How do i make an actor fire in the last direction he was standing. like if the last key down what up if you press space he will fire up and not down. please be specific i am still new to the scripting :) thanks[/img][/list][/code]

PostPosted: Mon Aug 14, 2006 5:19 pm
by makslane
Create a variable to hold the key state.
In the Key Down event for the Up key, you can set the variable:
keyUp = 1;

In the Key Down event of Space key, test the keyUp variable:
Code: Select all
if(keyUp)
{
   //Your action here
}

PostPosted: Mon Aug 14, 2006 11:02 pm
by hollywoodcolor

PostPosted: Wed Aug 16, 2006 11:58 am
by Zehper48
its not that it doesnt work its im not sure how to put that into use.I dont know how can you be a little more spasific and step by step really helps :D