getting frustrated

Talk about making games.

getting frustrated

Postby getting frustrated » Tue Dec 06, 2005 1:11 am

how do you get the actor to turn the oppisite direction when using the arrow keys???????????? :x
getting frustrated
 
Posts: 2
Joined: Tue Dec 06, 2005 1:03 am
Score: 0 Give a positive score

Postby ingsan » Tue Dec 06, 2005 1:35 pm

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
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby BeyondtheTech » Tue Dec 06, 2005 2:53 pm

I like C's shortcut...
Code: Select all
y-=10;  or y+=10;
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby ingsan » Tue Dec 06, 2005 6:41 pm

:)
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby getting frustrated » Wed Dec 07, 2005 1:39 am

no i have my actor he walks left and right but when i go right he his still facing left.
getting frustrated
 
Posts: 2
Joined: Tue Dec 06, 2005 1:03 am
Score: 0 Give a positive score

Postby BeyondtheTech » Wed Dec 07, 2005 2:46 am

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.
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby ingsan » Wed Dec 07, 2005 4:42 pm

Look at my post, you'll see that I specified to change Animation Also.
Good Luck :)
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby ondy1985 » Wed Dec 07, 2005 11:15 pm

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.
Image

Motto: "I never let my schooling interfere with my education" --- Mark Twain
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest