Character update/render methods

S_Rank_Crazy

Veteran
Veteran
Joined
Dec 30, 2015
Messages
78
Reaction score
47
First Language
English
Primarily Uses
RMMV
Hey guys,


Been playing around with some of the sprite update methods and was wondering: Is there a way to stop the Scene_Map from updating its sprite logic, but still have the sprites animate?


I had overridden the Scene_Map.prototype.update method and called just


this._spriteset.update();


but no dice. Spriteset_Map seems to be how the sprites update, but the rendering seems to be done outside of that. I looked through all of the Scene update methods in the superclass hierarchy for Scene_Map but didn't see anything directly link to triggering a render pass. Even backtracked to pixi.js and had a look at the PIXI.Sprite class - I just got confused there.


Anyone got any ideas? Thanks in advance.
 

S_Rank_Crazy

Veteran
Veteran
Joined
Dec 30, 2015
Messages
78
Reaction score
47
First Language
English
Primarily Uses
RMMV
So I assume no one has ventured this far in to the RM/pixi.js implementation. Was a long shot anyway.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Rendering is done in SceneManager.renderScene(), which happens after all updates are done.
 

S_Rank_Crazy

Veteran
Veteran
Joined
Dec 30, 2015
Messages
78
Reaction score
47
First Language
English
Primarily Uses
RMMV
Hey, thanks for the reply.


I had ventured into the logic for the renderScene method, but looks like the issue I had was more in the area of not knowing what actually updates the sprites' render state, i.e. where the frame count is updated that determines which frame of an animation to render. By overriding a Scene's update method I'm seemingly stopping this process from happening, from what I gather the Spriteset.update method updates all child sprites, so if my custom Scene.update method calls the Spriteset.update method it should still update the sprites, right? Not sure what I'm missing.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top