View Full Version : Making an explore page
08-19-2012, 03:32 PM
I've been recently building a game site (Pokemon styled) and I have completed other parts of the site (a major of it). I'm having issues on movement. I recently implemented a movement code (using jQuery) which allows WASD to control movement. The problem now I have is, I have no clue on how to make a monster appear on movement. I'm thinking AJAX but I'm not sure on how it could detect keyboard movement. (The site is built in/with PHP)
This is how it looks http://prntscr.com/e1rvg
Any help? Thanks.
08-21-2012, 05:04 AM
Bump. Help please!
08-21-2012, 07:39 PM
Is there a reason you posted this in the PHP forum?
PHP wise, all you can do is accept what is sent to you from the JS, and for something that has movement, you would be using AJAX for that to plot positioning. PHP itself is completely incapable of providing any animation over http.
Alternatively, look into a more animation friendly solution such as flash/flex, silverlight or java applets. Silverlight and Java can communicate directly with a remote server database; I'm not sure about flash or flex though.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.