Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / moving my object with arrow keys

Author
Message
Justice
19
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 27th Nov 2014 14:42
Hi,

I have a small problem with my movement.

I have a object on the screen which I move right and left with the arrow keys and jumps when I press the up key. (all works great)

The problem I have is when I keep my right or left arrow key down and press the upkey it doesn't jump.

I guess its only recognising my first key pressed.

Anyone got any ideas of how I can change my code to allow movement & jumping at the sametime.

Attachments

Login to view attachments
Scorpyo
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 27th Nov 2014 22:37
try this one as an example:



cheers
Scorpyo

Login to post a reply

Server time is: 2024-04-23 11:59:43
Your offset time is: 2024-04-23 11:59:43