Thanks again guys,
alright so most-likely I was trying to build a movements System. But thus so far all I could do was making the player go at a certain speed using player.x += 0.7; something around this by using keyboard.
but it's still coming thru the walls, I don't want to make it for every level as in
PHP Code:
if (player.x in |20,40|) ...
is there a way to make a better and cleaner system?
|
i dont really get what you need. do you need a wallcheck? if so, you can use
PHP Code:
if (onWall(x, y))
you can also check the following link for a barebone movement system
http://forums.graalonline.com/forums...ad.php?t=78043