lets say lava or spikes in the runner Capx that comes with Construct2. I see there are random blocks spawning but when I try to add lava or spikes they always appear behind the player. I'm not sure the best way to approach this. Any tips or suggestions would be appreciated.
I'm no shure i understand, but you can right-click on the lava or spikes to set their z-order.
you can alter the z order of created objects "in code" - see z order at https://www.scirra.com/manual/132/common-actions
Hi Dj and Ram
I did try the Z order method but the issue i run into the lava stays the same width, so if the blocks are randomly generated sometimes I'm running in the lava. Have included my CAPX so you can see exactly whats going on and if you have any ideas let me know.
Develop games in your browser. Powerful, performant & highly capable.
Try this pseudo code:
"condition" --> create "block" object
--> Move "block" to object "behind" player
On "block" created --> Move "Block" behind "Player" (move to object action)