Continuing the discussion from here…
Hey hopscotchers! This game mechanic is a new thing that I accidentally (I really discovered this on accident). Use in any car/racing game (or wherever you want), as long as you give credit! Yeah, I am proud of this discovery, so I want to show it to you!
This is a rocket/booster effect ideal for future racing games and Hopscotch’s very own Jeep! It may sound complicated to make but to ensure it’s not rocket science, here’s a step-by-step tutorial to make this:
𝚂𝚝𝚎𝚙 𝟷: 𝙰𝚍𝚍 𝚊 𝚛𝚞𝚕𝚎
This works best when a button is tapped. Insert When ([Name of Object]) is tapped into the code. Using When Game Starts is not recommended.
𝚂𝚝𝚎𝚙 𝟸: 𝙰𝚍𝚍 𝚊 𝚋𝚞𝚝𝚝𝚘𝚗 𝚎𝚏𝚏𝚎𝚌𝚝 (𝙾𝚙𝚝𝚒𝚘𝚗𝚊𝚕)
To ensure that users will know that the action has been preformed, add a button effect. For example, use a scaling effect where the button scales by 10 percent and after a short breath of time, it goes back to normal size.
𝚂𝚝𝚎𝚙 𝟹: 𝙼𝚊𝚔𝚎 𝚝𝚑𝚎 𝚋𝚞𝚝𝚝𝚘𝚗 𝚌𝚕𝚘𝚗𝚎 𝚒𝚝𝚜𝚎𝚕𝚏
This method includes the use of clones. Make the object clone itself up to 35 times.
Now that you coded this entire rule, next move onto the next one!
𝚂𝚝𝚎𝚙 𝟺: 𝙲𝚘𝚍𝚎 𝚠𝚑𝚊𝚝 𝚝𝚑𝚎 𝚌𝚕𝚘𝚗𝚎𝚜 𝚍𝚘
Part 1: Making the effect
First, you will need to create 2 variables. Name them whatever you want! One will be for the clone’s x pos and the other will substitute for clone index.
We first have to code the clone’s x pos. To do this, each time a clone is created, the x pos variable that you created should increase depending on the size you want the effect to be. This will require trial and error to justify. Then put a repeat block for actions that repeat 100 times and insert
Set Size percent ([[Self] Size as a percent] + [Number that depends on size of effect]])
Set Invisibility percent ([[Self] Invisibility as a percent] + )
Part 2: How to make it repeat properly
How to use the clone index substitution is shown below:
This variable has to be created in order for the x pos and your “clone index” variable to be reset. To make this effect work as many times as possible, create a boolean/conditional saying Check Once If [Variable Substituting for Clone Index] = [Number of Clones Created each time].
Then insert set variable blocks and set the “x pos” and “variable substituting for clone index” both to 0.