Very frustrating problem with key down event!

Non-platform specific questions.

Very frustrating problem with key down event!

Postby Freddy » Sun Oct 21, 2007 8:41 pm

I made a keydown event for one of my actors, I went to script editor, and I typed in:

walkright = walkright + 1;

Then I tried it, and it didnt work! WHAT IS WRONG WITH THE CODE?!?!? Thats all, :D I will give a point to anyone who can solve this problem. :)
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: Very frustrating problem with key down event!

Postby Spidy » Mon Oct 22, 2007 6:53 am

for right put this code
x = x +5;

for left put this
x = x -5;

its easy :D
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: Very frustrating problem with key down event!

Postby Kalladdolf » Sat Nov 17, 2007 4:55 pm

what do u wanna define with walkright?
a textnumber?
a movement speed?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron