1 decade ago by Attanar
I'm making a super Mario style game.
As far as I know, tiles can't trigger actions, so if I want to add breakable "blocks" to the game, these should be Entities, and not just tiles in the map.
Did that, but noticed that when my player is running over a platform made of blocks (entities) it is not getting it "standing" property set to true, and therefore not playing the "run" animation, but the "jumping" one.
So, what is the best way to detect if my player is standing on a Entity? Should I manually set "standing" to true on collision depending on where the collision took place? I guess there must be a simple solution to this.
Thanks in advacne for your help :)
As far as I know, tiles can't trigger actions, so if I want to add breakable "blocks" to the game, these should be Entities, and not just tiles in the map.
Did that, but noticed that when my player is running over a platform made of blocks (entities) it is not getting it "standing" property set to true, and therefore not playing the "run" animation, but the "jumping" one.
So, what is the best way to detect if my player is standing on a Entity? Should I manually set "standing" to true on collision depending on where the collision took place? I guess there must be a simple solution to this.
Thanks in advacne for your help :)