getting frustrated
Posted:
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????????????
Posted:
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
Posted:
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.
Posted:
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.
Posted:
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
Posted:
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.