Discuss Scratch

_Arkhalis_
Scratcher
16 posts

Hitbox for menu selection

How would you make a hitbox for a menu selection option(clicking the play button or the settings button but not having to click on the letters, just needing to click on the area around them).
DerpyHead0
Scratcher
1000+ posts

Hitbox for menu selection

the simplest way and likely best way would be to just put a box around the button, it shows the actual buttons shape and works easily and perfectly.

if you don't want to do this for some reason though, you can use costume switching, like this:

switchcostumetohitbox this can just be a black box, it just needs to be the clickable areaiftouchingmouse pointer?andmousedown?then. . .switchcostumetotext
_Arkhalis_
Scratcher
16 posts

Hitbox for menu selection

DerpyHead0 wrote:

the simplest way and likely best way would be to just put a box around the button, it shows the actual buttons shape and works easily and perfectly.

if you don't want to do this for some reason though, you can use costume switching, like this:

switchcostumetohitbox this can just be a black box, it just needs to be the clickable areaiftouchingmouse pointer?andmousedown?then. . .switchcostumetotext

Thanks so much! Also the dots just represent the rest of my code right?

Powered by DjangoBB