13 Mar

in those RPG games, when a player walk

Posted by webmaster under enart.hubeidaxue.com

  • in those RPG games, when a player walk, does the game use hitTest() to check collisions? I don't think they use tiles because then they'll have too much tiles. My idea is that they use tiles (only 1 and 0), and draw a picture that fit with the tile map. Is that right? Or is there any other solution for collision? hitTest is slow, I think


  • use a 2d matrix to describe which tiles are occupied, then when your player wants to move to a new square, check if it's occupied, and if it's not, move the player, if it is, don't move the player.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about in those RPG games, when a player walk , Please add it free.
    | |