Hello!
I am currently making a Top-down shooter game and trying to implement a coloured shadow underneath (with no transparency) but the enemy is showing underneath it.
Here is my code:
Thanks to anybody who helps out!
Hello!
I am currently making a Top-down shooter game and trying to implement a coloured shadow underneath (with no transparency) but the enemy is showing underneath it.
Here is my code:
It’s not clear at all, but I assume you’re meaning the last event, with the repeat for each Enemy_Ring, is the one causing the issue.
So, are Enemy_Ring and Entities on the same layer?
If not, then how does GDevelop know which Entities object to use? Because as it stands, all Enemy_Ring z-orders are set to the first Entities object created on the scene.
What you need to do is link the enemy ring with the enemy. Either by a common id using a number variable on the enemy_ring object and on the Entities object group, or by using the link 2 objects action.
Thank you! It works now!