RMMV About pixijs 4 and rendering

Synrec

Veteran
Veteran
Joined
Nov 6, 2019
Messages
89
Reaction score
37
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,598
Reaction score
883
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
89
Reaction score
37
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,598
Reaction score
883
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
89
Reaction score
37
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

I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!
Stream will be live shortly! I am going to be playing some Among Us! Feel free to drop by!
Ami
tv program always get the ratings (it's the reason why drama series has 1000+ episode),also full and nonsense of censorship (weird blur, a scene getting cut because the unconvenient viewer,but it unconvenient to me either. you never see what the original is)

i know the reason is to take cover the viewer from the negative thing,but i just laughing and mocking of them that they're always suck :guffaw:
Star Chart Idea - Just something I am working on.
My sister learned spanish the old fashioned way and saw my way of conjugating. I don't use the formal method and just wing it. I thought her heart might explode. Apparently, different words use different endings. Weird part is even though I never learned the difference, I still can tell when the endings "look wrong".

Forum statistics

Threads
104,453
Messages
1,006,399
Members
135,963
Latest member
Kyuuketsuki2134
Top