Hello everyone!
I have this code -
I want to have a image that sits in one square at a time. Then when you click certain keys (Left Arrow, Right Arrow, Up Arrow, Down Arrow) it moves in that direction. (When you hold the key it doesnt continue moving).HTML Code:<!DOCTYPE html> <html> <head> </head> <body> <table> <tr id="row1"> <td id="s1"></td> <td id="s2"></td> <td id="s3"></td> <td id="s4"></td> <td id="s5"></td> <td id="s6"></td> <td id="s7"></td> <td id="s8"></td> <td id="s9"></td> <td id="s10"></td> </tr> <tr id="row2"> <td id="s11"></td> <td id="s12"></td> <td id="s13"></td> <td id="s14"></td> <td id="s15"></td> <td id="s16"></td> <td id="s17"></td> <td id="s18"></td> <td id="s19"></td> <td id="s20"></td> </tr> <!--ETC--> </table> </body> </html>
It also needs to stop when it hits the border...
Thanks,
keyboard1333



Reply With Quote

Bookmarks