Jump to content

Moving image with arrow keys


blinks

Recommended Posts

As a raw beginner to PHP, I'd appreciate it if someone could start me off with some code that will move an image x number of pixels when an arrow key is pressed. That is, move the image 10 pixels up when the up arrow is pressed, 10 pixels left when the left arrow is pressed, etc.

 

Thanks!

 

:)

Link to comment
https://forums.phpfreaks.com/topic/153801-moving-image-with-arrow-keys/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.