Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
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)