Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Pages: 1 [2]  All

Author Topic: Window button/static scripts  (Read 9731 times)

0 Members and 1 Guest are viewing this topic.

rkitting

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • View Profile
Re: Window button/static scripts
« Reply #15 on: July 07, 2008, 07:15:54 PM »

Nevermind. I'm using another method to scroll now, with up/down buttons, also while holding down button and it works well :)
Logged

maze

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 59
  • Good news
    • View Profile
Re: Window button/static scripts
« Reply #16 on: July 08, 2008, 03:02:56 PM »

A little bit late, but I think I have a answer for you.

Quote
I never come into the "LeftRelease" Event and it keeps scrolling the button after releasing
It's because the script is running on the slider-button itself. If you release the mouse beside the slider the event won't work.
You have to code the release also in the window script or in my opinion in the game.script

Quote
the button doesn't stay under the mouse cursor
Try something like this
Code: [Select]
this.X = Game.MouseX[b]-8[/b]; (-8 in this case) it makes the offset.
Another method would be using sprites and make the hot spot on the right point.

Logged
Pages: 1 [2]  All
 

Page created in 0.021 seconds with 20 queries.