Different collisions for sides of an actor
AngryBoi
Member Posts: 586
I am currently making a Geometry Dash like game, and I need to know how to do something. How can make it so when the running square collides with the side of another block, it destroys, but colliding on top, it keeps going? (I already have the second thing set up)
Comments
You need to make a mask or you can also create a death boolean attribute ,create a rule in the block when overlaps with actor of type player
And player y position is < than my y position
Change attribute death to false.
And in the player create a rule when death is true destroy
When you end the game don't forget to post the link
The video below shows you one way to detect a collision on just the top portion of an actor (it's head), I'm sure it could be adapted to detect side collisions instead:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page