- 0
How to properly runs animation without interfering with main loop
Asked by
azdesign
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
azdesign
No registered users viewing this page.
Hello everyone, nice to meet you,
I made a custom class to display character portrait in RPGMaker XP Here is the class :
Create an event on the map to create an instance as global variable, tada! image popped out. Ok nice. But Im not satisfied, Now I want it to have bobbing-head animation-like (just like when we breathe, sometimes bob our head up and down) so I added another method :
I called the method to run the animation and it works, so far so good, but the problem is, WHILE the portrait goes up and down, I cannot move my character until the animation is finished.
So that's it, I'm stuck in the loop block, what I want is to watch the portrait moving up and down while I walk around village, talk to npc, etc.
Anyone has suggestion for better logic for playing animation ?
Share this post
Link to post
Share on other sites