Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Mouse / Scrolling alignment problem.

Hello people,
I've been playing around with Astroboy's Mouse script w/Mr. Mo's IMS a bit, but I have an issue I cannot seem to resolve. I'm currently using SDK 1.5 (Script conflicts stop me from upgrading) and I've managed to make all my scripts work with 1.5 - and I'm satisfied... with the exception of this issue:

My issue is in relation to scrolling menu's and the mouse -
1st. When you move to the bottom of the page to scroll down, it will scroll down only one row.
2nd. When this happens the rectangle (the one that shows you what you currently have selected) no longer aligns with the mouse correctly, rather it aligns as though the mouse we're roughly 20 pixels above its current position.

I've attempted to solve this on my own with no luck, not that I'm a fantastic scripter or anything.

In my attempt to fix it, I wrote a small scroll box and used up and down arrow keys to scroll, however with each additional item that scrolls into view from the bottom of the list, the disalignment of the selection rectangle multiplies and when the mouse moves back onto the menu it prevents the arrow keys from scrolling more than (screen size -position - mouse disalignment). Hope that's not as confusing as it sounds.

What I'm looking for is..
A) A (hopefully simple and pre made) fix for this issue.
Or
B) A way to disable the mouse completely during the inventory and skills menu, then have it activate again once I leave said menu's


Currently this issue only effects my Inventory and Skills menu in the game after I have enough skills/items for it to scroll...

I did a search on google, rmxp.org, the creation asylum, rmrk.net and a few other places and came up empty handed.

I appreciate any help provided.

Also, is there a way to make the cursor always on top, sometimes it disappears behind choice boxes and speech boxes? - Solved
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top