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?