Discuss Scratch

poggerssImKool
Scratcher
3 posts

How do you make a option button?

I know this code for buttons and it is what I am using currently

whenthisspriteclickedhideswitchbackdropto

But it isn't very pleasant because I am remaking an interactive game that has different choices (I made a while ago)
What I did
I used the code from above with some addons, the issue is that I had so many duplicates of the button it lagged when I was coding the game
How the game operated
When you clicked to start it showed 3 buttons and when you choose your choice and clicked it then it hide all of the buttons and showed 3 more and this happened with every single choice until you choose the wrong choice and die. It kinda works like a youtube original story when you choose what story you want like Markipliers

game link —>https://scratch.mit.edu/projects/694205945/


What do I need to fix the issue?
I need 3 buttons ONLY 3 I have no idea what the correct code is. It has been a year since i have been trying to find this out D:

Last edited by poggerssImKool (March 10, 2023 13:44:49)

legendary34678
Scratcher
1000+ posts

How do you make a option button?

Could you please post the link to your project? Also, have you tried using clones?
Mrnoob3003
Scratcher
100+ posts

How do you make a option button?

You could maybe use clones with diffrent costumes and depending on the costume it does something else when its clicked

Powered by DjangoBB