ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
938
Reaction score
585
First Language
English
Primarily Uses
RMMV
Greetings.

Recently I've been trying to get better at some of the things in scripting that I'm not so good at (read: terrible at). I have this test case, where if I can figure out how to do it, I'm going to make a menu transition, where between menus in the game, the individual windows fly off the screen, and the new scene loads the new windows off the screen, and scoots them into frame. Neat idea, right?

Well I can't figure out how to make these windows move a couple of pixels per frame, rather than instantly. I can change x/y positions of windows fine, but the window moves immediately on the frame after those values are changed, there is no slow moving involved. I've seen plugins where some UI elements move around a bit, and I've looked at a few, but I'm not sure where to look to see if I can reverse engineer this for my own use.

Any ideas where to look? Google hasn't been my friend on this one. Any help would be appreciated.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,660
First Language
Czech
Primarily Uses
RMMV
Changing coords doesn't work like "Slowly move from current position to there". It works like "place there" instead. So what you need to do is to move the windows just by a small portion of the total distance per frame using the update loop.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
938
Reaction score
585
First Language
English
Primarily Uses
RMMV
This update loop, is that the update() function that the windows all have? This updates every frame? Automatically? And I can alias it to just add in something to move it around if I want?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,660
First Language
Czech
Primarily Uses
RMMV
Yes, yes and yes.
 

Latest Threads

Latest Posts

Latest Profile Posts

I've been busy working on my next music pack, and I've also been busy composing some personal compositions. Depending on the type of mood and setting, sometimes I just really love the sound of music created in lofi mono. It has its charm.
Haven't used this website in so long, hope everyone here have a good day! Lately I've been crafting a dnd world, so I haven't got the time to use RPG maker sadly enough.
New MZ Update! Subfolders for Assets, Search in Plugin Help, Map Layer Buttons | RPG Maker News #78

A little WIP I decided to drop for something coming in 10-12 hours!
9.PNG
I just did some math and... apparently what seemed to be a little fun gimmick turned out to be an 80+ actors project :kaoswt2:

Forum statistics

Threads
112,482
Messages
1,068,578
Members
146,149
Latest member
GlacierStangs
Top