Hello, I’m trying to create a top-down player experience. The behavior is top-down (obviously) but I’m looking for some behavior for my wall sprite?
I come from construct and they used a ‘solid’ behavior, which just did the trick.
I’ve looked around for the answer > Stoping the player whit top-down movement
Also downloaded a demo, and I couldn’t work out how they did it
my game is in it’s infancy state, so not much to show I’m afraid. just a player sprite with (TD movement) and a wall sprite (which is a tilesprite - OOH! does that make a difference ???)
Generally a check is made for a collision between the wall and player objects as the event condition, and then separate the player and wall objects as the event action.
Tile sprites have a fixed, whole image collision box.
Sorry about my late response. I’m not 100% sure I understand enough to get the player to stop on collison with a wall sprite. I’ve checked player actions.
check if the player is colliding with the wall with events
then use “Seperate Objects” action to seperate the player from the wall.
What have you got so far in the way of events?
So, here: if player collides from x Then reposition -8 (sprite width). But if I collide from Y then …
Bingo!!! Thank you TiberianEuan and also MrMen.