π±ππΌππΎπ π‘πππππΎπ π€πΏπΏπΎπΌπ πΆππππππ π±ππΌππΎπ π²πΌππΎππΌπΎ
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] + [1])
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.
@omtl