Thanks for the reply.
Like you I thought the ghost sprite. The problem is not how to detect whether or not that is colliding ghost.
Develop games in your browser. Powerful, performant & highly capable.
My intention is to teleport my character 50 pixels to the right when you press a button. But then, I do not want to be stuck in a wall package. How I can detect if the character collide?
Thank you very much for the help :)
PS: Sorry my English.