- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
While tinkering with Sprites, I tried to add at least three sprites, and each of them in different index (z-index in rgss), for example:
this.addChildAt(milenaCircle, 1);this.addChildAt(milenaCircle2, 2);and then, since I want the third circle to be at the top most part, I made it:
this.addChildAt(milenaCircleTop, 8);and it says its out of bounds. Does this mean that it only adds layer objects when the same number of sprites are created? Is it because Sprite now is being handled by an array and determines how many layers it should have depending on the length of that array?
this.addChildAt(milenaCircle, 1);this.addChildAt(milenaCircle2, 2);and then, since I want the third circle to be at the top most part, I made it:
this.addChildAt(milenaCircleTop, 8);and it says its out of bounds. Does this mean that it only adds layer objects when the same number of sprites are created? Is it because Sprite now is being handled by an array and determines how many layers it should have depending on the length of that array?