Changing size at the horizon?

hopscotch
help
games
howtos
helpwithcode

#1

I want to make a game, in wich I want the animals to be smaller at the horizon, and bigger at the bottom of your screen. Is there a way to do that cause I have no idea. Btw the animals need to move closer and furter away.


#2

@Jootje

When the play button is tapped
Repeat Forever
Set size to (something involving it's Y POS.)
End

Just experiment with this kind of code, and soon enough, you will find the perfect thing to replace the parenthesis to make it how you want!!!


#3

You can see the code I came up with here:
https://c.gethopscotch.com/p/xp3ilcobt
but it's a bit glitchy. Basically, press the iPad and Bear will move there at the corresponding size. Adjust it how you'd like!


#4

Maybe you can check out my project "The Star Wars Text (in progress)" and play with the code :grinning: