Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making an explore page

    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.
    Last edited by sharks12; 08-19-2012 at 03:36 PM.

  • #2
    New to the CF scene
    Join Date
    May 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bump. Help please!

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •