Hello ! I want to do a unblock game type. The car photo is the player he can move up and down but stucks if he touches the another photo ( the stars ) The user can move the stars photo so the car can pass freely, but also get stuck if it touches the car. I have made the stars get stuck at the car, but not the car on the stars, it keeps pushing the stars sprite, even if I put a stop movement on collision. It stops on first touch, but if user continues pressing arrow up, it continues stepping pushing the stars sprite 1px after 1px. I want it to be stuck at the stars too. How I am able to do that ?
Develop games in your browser. Powerful, performant & highly capable.