Page 1 of 1

getting frustrated

PostPosted: Tue Dec 06, 2005 1:11 am
by getting frustrated
how do you get the actor to turn the oppisite direction when using the arrow keys???????????? :x

PostPosted: Tue Dec 06, 2005 1:35 pm
by ingsan
Example : On Up key, Actor A walks upwards and on Down key, he walks downwards ( it's that what you mean ? )

On KeyDown action (Up key) > Script :
Code: Select all
y = y - 10 ;
// Change Animation to your_upward_animation


On KeyDown action (Down key) > Script :
Code: Select all
y = y + 10 ;
// Change Animation to your_downward_animation

PostPosted: Tue Dec 06, 2005 2:53 pm
by BeyondtheTech
I like C's shortcut...
Code: Select all
y-=10;  or y+=10;

PostPosted: Tue Dec 06, 2005 6:41 pm
by ingsan
:)

PostPosted: Wed Dec 07, 2005 1:39 am
by getting frustrated
no i have my actor he walks left and right but when i go right he his still facing left.

PostPosted: Wed Dec 07, 2005 2:46 am
by BeyondtheTech
Your actor should have multiple animations, one for walking left, the other for walking right.

So, when you press the key, you should be changing the animation as well.

PostPosted: Wed Dec 07, 2005 4:42 pm
by ingsan
Look at my post, you'll see that I specified to change Animation Also.
Good Luck :)

PostPosted: Wed Dec 07, 2005 11:15 pm
by ondy1985
BeyoundTheTech, Ingsan, I have real respect for you explaining things to newbies. I get angry each time I see a thread like this one, because I the author had a look into tutorials, he wouldn't be here asking for help. If it was only once, ... but threads like this show up very often, each time asking the same questions. I really don't have your patience. Respect.