• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

How to make scroll effect

Blake7

To Ignite all people within our nation
  • 49
    Posts
    8
    Years
    • Seen Nov 30, 2018
    I am trying to have scroll effect on my bag
    The drag effect has the follow code:
    if $mouse.inAreaPress?(482,10,512-482,300)
    max=@sprites["itemwindow"].itemCount-1
    @sprites["itemwindow"].index=($mouse.y-36)*max/264
    @sprites["itemwindow"].index=max if @sprites["itemwindow"].index>max
    @sprites["itemwindow"].index=0 if @sprites["itemwindow"].index<0
    pbRefresh
    end
    what should if $mouse.scroll_down? contain to scroll down itemwindow
     
    Last edited:
    Back
    Top