Discuss Scratch

RGA-CREATZ
Scratcher
8 posts

Help me make a scroll wheel for my game

im trying to make a clicker game but all the upgrades wont fit can someone help me make a scrolling thing
dem_bot
Scratcher
100+ posts

Help me make a scroll wheel for my game

in this thing https://scratch.mit.edu/projects/1235947583/ I made a scroll thing, it's horizontal, but quite easy to modify to being vertical. If you add
when [ up arrow v] key pressed
scroll up

when [ down arrow v] key pressed
scroll down
the scroll wheel of the mouse will also be able to scroll.
RGA-CREATZ
Scratcher
8 posts

Help me make a scroll wheel for my game

i do not under stand your script, i will put the link here so you can modify my game and make the scroll thing for my upgrades https://scratch.mit.edu/projects/1255287985/editor

Last edited by RGA-CREATZ (Dec. 14, 2025 12:33:54)

RGA-CREATZ
Scratcher
8 posts

Help me make a scroll wheel for my game

you can put a screen shot of it so i can copy it into my game
dem_bot
Scratcher
100+ posts

Help me make a scroll wheel for my game

Zebras-Are-Yumz
Scratcher
7 posts

Help me make a scroll wheel for my game

Are you wanting to be able to use the scroll wheel on your mouse to scroll?
RGA-CREATZ
Scratcher
8 posts

Help me make a scroll wheel for my game

huh
_--_-_-_-_-_-_--_
Scratcher
10 posts

Help me make a scroll wheel for my game

RGA-CREATZ wrote:

im trying to make a clicker game but all the upgrades wont fit can someone help me make a scrolling thing
Hi! This might be useful for you!
when [up arrow] key pressed
if <not <key [up arrow] pressed?>> then
Enter your code when you scroll up here!
end
when [down arrow] key pressed
if <not <key [down arrow] pressed?>> then
Enter your code when you scroll down here!
end

Last edited by _--_-_-_-_-_-_--_ (Dec. 14, 2025 20:03:03)

RGA-CREATZ
Scratcher
8 posts

Help me make a scroll wheel for my game

yes but the thing is i dont know the code for the scroll wheel
Zebras-Are-Yumz
Scratcher
7 posts

Help me make a scroll wheel for my game

RGA-CREATZ wrote:

yes but the thing is i dont know the code for the scroll wheel
I can make up a script and give it to you when I have the time
Jlerpy
Scratcher
1000+ posts

Help me make a scroll wheel for my game

RGA-CREATZ
Scratcher
8 posts

Help me make a scroll wheel for my game

thank you this is very easy to follow and copy
Qwerty94Uiop
Scratcher
7 posts

Help me make a scroll wheel for my game

RGA-CREATZ wrote:

im trying to make a clicker game but all the upgrades wont fit can someone help me make a scrolling thing
Its quite easy! if you want a scrolling wheel mechanic just do this
when [up arrow v] key pressed
if <not<key [up arrow v] pressed?>> then
your code here
end

If you want it in a sprite
when this sprite clicked
repeat until <not <mouse down?>>
set x to ((your x))
go to [mouse-pointer v]
if <(y position) < [Min Y]> then
set y to (((Min Y)) + (1))
end
if <(y position) > [Max Y]> then
set y to (((Max Y)) - (1))
end
end
Now just make it so that the sprites for the upgrades will change Y on the Y position. Scratch on!

Powered by DjangoBB