Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
michaelsoftman

Help with a quick edit?

Recommended Posts

Hello, I'm not new to RMXP, but unfortunately, scripting was never my strong suit.

 

I use Diego's CMS, and I'd like to request a simple edit to it.

 

When you call the menu, the windows come in from opposite sides of the screen. I'd like to either speed up the scrolling, or just make it so that the windows appear already in place.

 

I uploaded a demo game with the script in it to my domain, cause it won't let me attach the .rar file for some reason.

 

http://revivalro.net/Diegos_CMS.rar

Share this post


Link to post
Share on other sites

OMFG what a terribly poorly written script. Anyways what you're looking for is inside the " (**) Menu_System" entry, starting with line 4093 you have a series of:

@<type>_window.x +/-= 16

Those parts are responsible for moving the windows when they're not either out of the screen or in place. Unfortunately for you, the scripter did not give a damn about object-oriented programming, so instead of changing the scrolling speed at a single place for all windows, you have to change it for each window. Anyways just replace 16 with a larger value. Stick to multiples of 16, however, because the script does not exactly check whether the window is at the right position, but rather if it's past some point. So with steps of 16 pixels the windows are supposed to fall right in place in the end. I suggest trying 32 hoping that the movement wasn't calibrated to last an odd number of frames.

 

Otherwise take a look at my ACMS, it just takes modifying a single constant to change the windows' scrolling speed. :P

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...