RMMV About pixijs 4 and rendering

Synrec

Veteran
Veteran
Joined
Nov 6, 2019
Messages
82
Reaction score
34
First Language
English
Primarily Uses
RMMV
Would pixijs alter its rendering of an array of object bitmaps if I shift their position in array?

eg:

arr1 = [bitmap1, bitmap2]

but I swap array elements so that it becomes:

arr1 = [bitmap2, bitmap1]

would the pixi renderer now render bitmap2 before bitmap1 or does it establish its own render order at the instant objects are loaded?

Most pixi online reference pixi 5+ not 4... and for 4 they recommend layers for adjusting zIndex.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,567
Reaction score
875
First Language
Dutch
Primarily Uses
RMMV
so far I know, it renders the first in the array:

arr = [1, 2, 3 ,4 ,5 ,6]
1 renders first, than 2, 3, 4, etc

arr = [5, 3, 6, 2, 1, 4]
5 renders first, than 3, than 6 etc

so far I understand them, at least, they read it first, than everything behind it.
 

Synrec

Veteran
Veteran
Joined
Nov 6, 2019
Messages
82
Reaction score
34
First Language
English
Primarily Uses
RMMV
so far I know, it renders the first in the array:

arr = [1, 2, 3 ,4 ,5 ,6]
1 renders first, than 2, 3, 4, etc

arr = [5, 3, 6, 2, 1, 4]
5 renders first, than 3, than 6 etc

so far I understand them, at least, they read it first, than everything behind it.
Ah, I ask because I'm thinking of making a faux z-index, not sure how effective it'd be but I guess the follow up is how taxing are if statements on processing power in general?
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,567
Reaction score
875
First Language
Dutch
Primarily Uses
RMMV
I'm not that good in js and still learning and try fixing my own problem,
but someone with pixi knowledge can explain it better to you, while I dont use
pixi.js and dont want to mess with it at the moment and probably not going too.

wait for a bit for someone with pixi knowledge or try things out :)
 

Synrec

Veteran
Veteran
Joined
Nov 6, 2019
Messages
82
Reaction score
34
First Language
English
Primarily Uses
RMMV
I'm not that good in js and still learning and try fixing my own problem,
but someone with pixi knowledge can explain it better to you, while I dont use
pixi.js and dont want to mess with it at the moment and probably not going too.

wait for a bit for someone with pixi knowledge or try things out :)
Np, still gonna back up my script and try it out, if it fails, well, I tried.
 

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

Latest Threads

Latest Profile Posts

Today's the day I post my demo!
I am having a great day today humans! May your day be great too! Praise the altar.
Recently discovered that an old member called "Kaus" stole some tilesets from other games, claim as yours, and some people associate his nick with mine. Besides having the same name, he was publishing tilesets too. Bad luck? Guess maybe I'll need to change my nickname... :(

My best practices for a new amazing plugin by this author https://kagedesuworkshop.blogspot.com

Forum statistics

Threads
104,191
Messages
1,004,542
Members
135,712
Latest member
Saediga
Top