After deleting one of the tasks I wanted to put a new ID in the variable of each object, following the position order on the Y axis from the highest to the lowest, how to do this?
(Left IDs wrong after destroy the object | Right Correct IDs i want)
Develop games in your browser. Powerful, performant & highly capable.
You can use "loopindex" expression in all loops.
For example:
for each Sprite -> sprite Set ID to loopindex
If you have 5 sprite instances, this will set their ID variable to numbers from 0 to 4.