SEE NOTES AND CREDITS FOR HOW TO USE! Please report any bugs! I finally made a button engine! I see lots of inspiring button engines, and they always make me want to make my own. I'm not into UI, and my pen buttons were too laggy. So I made this engine! It was very fun to make. This is my first time doing many things: -Making my code cleaner by labeling messages, lists, custom blocks, and variables. -Making proper buttons. -Making things that change qualities when mouse is over them( like size and brightness). -Making an engine with a good demo. -It's my first second time using clones in an engine to avoid the issue that I describe in the USAGE NOTE(which is at the bottom of the usage guide). -Using pen stamping instead of clones while still using a sprite to easily calculate things like collisions. -Using a list of all object qualities and changing it using the increment counter (i) -Made a proper usage guide.
How to use: All the code is in the "Stamped Buttons" sprite. You'll obviously want to delete the demo first! Then, go in the costumes tab. For each button you want, make a costume. Then name it what you want to call it. Next, go to the code and find the custom block that starts with "!Change This!". Follow what I did for the nested if/else loops. For each button, it has an action - two may have the same action. So here, you will label the action using an action name in the "Action = ()" block. You will then make the code inside the if do what you want for this action. Finally, make the code for using the buttons in your game! When you want to create a button, use the "!External! Button: ..." Block. The first input is the button costume, the next is the action the button does (we made the actions actually do things last step), and the next 8 are "JUST READ WHAT THE CUSTOM BLOCKS SAYS ALREADY!!!!!!" To delete buttons, use the "!DELETE BUTTON!" block. USAGE NOTE: This does use a few clones for when you click the buttons. This is so it can run all the buttons at the same time without waiting. Otherwise, things like wait blocks would make the whole engine wait! If you are concerned about the max clone limit, there is a clone created whenever you click a button, which is deleted after the action has been executed. This took me about 2 hours. 206 blocks. Engine 100% by me. Demo by me except for: Explosion Sprite From https://scratch.mit.edu/projects/900513/ I know it's 11 years old bur who cares!!