I know this is a dumb question but how do you detect top-down collision? I'm trying to remake a game I made in GM (
) in C2 and I don't want the player to move over the trees.
I'm only using the solid behaviour on both trees and player and don't know how to prevent the player going over the trees!
Keyboard -> On Right Arrow pressed -> Set X to SpriteX+32
to move. What condition do I use to say "don't move right if next to a tree on the player's right"?
Have you tried using the 8-way behavior on your player object?
The programming should be
IF player collides with object (tree) : player -> stop
Yes I have but I want the player to "jump" in steps of 32 pixels at a time without any acceleration or deceleration.
andreyin, how would you get the player to just 'stop'?
Develop games in your browser. Powerful, performant & highly capable.
Check out the pacman tutorial. It uses grid based movement and checks for walls before moving.