I am pretty new to PHP and he looked in many places for an idea on how to do this but have failed. Here is what I would like to do.
I would like to use the arrow keys to navigate a game grid. for expamly I have a grid with X and Y axis and the person is at $x=5 and $Y=5 and then click the Up arrow key and it will read my database to see the data for $x=4 and $y=5
I know that PHP is all sever side but I am sure there is a way to do thiw with Java script. I can get it to display text now but I am not a Java script expert either . Any help would be great. This is a key part to getting my game working for beta testing
Arrow key navigation issue
Moderator: General Moderators
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
thanks
This will be in an online game and do not see how I could do it in flash with out major changes to the way the game is being set up. I have seen this done in ASP sites and it worksa well and I think it could be done with Java script but I just don't know where to start with that idea
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
This link might be a little help. Shows ways of using arrow keys to navigate from one text box to another. You might be able to adapt.
Different code samples for VBScript and JavaScript.
http://dbforums.com/arch/195/2002/9/510498
Different code samples for VBScript and JavaScript.
http://dbforums.com/arch/195/2002/9/510498