Are sprite layers handled by arrays?

Milena

The woman of many questions
Veteran
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?
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
you can only add child under the range of the already created format

so if they have 3 child created you can only far beyond 3
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top