This is a tutorial on making 3D objects in hopscotch!
Here I will hopefully teach you the basic idea behind stacking entities on top of each other to get a 3D effect!
First we will be making a 3D emoji!
(I chose the iPhone)
Start by adding a "text"!
Make sure to press "cancel" so the text is invisible!
To start off add a rule "when the play button is tapped: Create a clone"!
Then add another rule "when character is cloned"!
We want to make the clone create another clone until there are 30 entities! So every time a clone is created create another as long as there are less than 30!
Great! Now the will be 30 clones in-game! But all are invisible! That's why we have to set the clones to something! I can be any emoji you'd like, but I chose the iPhone!
Let's see how it looks in-game!
Oh no! All the clone are stacked exactly over each other! To fix that we have to change the y position of every clone so that we can see every one! To do that we have to set every clones y position to 383 + "Amount of Clones"! 383 is half of the screens height... 512 is half of the width!
Great! Now we can see every clone... But they are to small! Let's change the size to 1250%!
Now it looks way better! Time to show of all of its 3D glory by rotating it! To do that add a "repeat forever" block with set angle to "angle"!
Now to change the "angle" variable create another "text"! You can name it angle! After that make invisible by setting invisibility to 100%!
Time to add the rule that changes angle! It will increase it when you press the right side of the screen and decrease is you press the left side! To do that add a rule: when the iPad is pressed "check if last touched x is bigger than 512"
<img src="/uploads/default/original/2X/b/b254e36c1ce83181f032ca9455f1227c77ac5ead.png" width="666" height="500"
Great! Now it will rotate when you press the screen! Time to test it out!
Awesome! You have now created a 3D iPhone! (Or another emoji)
This was the first and most basic 3D tutorial! In the next one will I teach you how to make a 3D hopscotch logo!
If this tutorial does well...
What did you think of this one? Was it difficult to understand? Please leave a comment telling me how it was! Also leave a like for more of these! ️