What I try to achieve is for a solid object, to be able to “jump over” (passing through) a solid obstacle when a button is pressed. This without using physics and without passing through other solids.
I have attached a simple .capx as an example.
As the game world is filled with solids (jumpable obstacles, not jumpable obstacles and enemies that keep following the player), the player should be able to only “jump” over the obstacles but not being able to jump over (passing through, other solid.
In the .capx, attached, I try to explain the scenario that is composed by:
-a enemy that follows the player
- an obstacle (like a fence)
-And a box
The player and the enemy cannot pass through any other solids. But by pressing a button, the player should be able to jump over the obstacles, but not over the box.
At the same time, the enemy will still not b able to jump over the obstacles.
Any contribution would much appreciate!