A little math help
Ok so I have some balls rolling down a grid and they shrink over time to give the illusion of perspective.
Using time isn't the best way however, because the balls are going to change speeds.
So if one ball happens to be really slow, it will shrink too soon and like wierd a visa versa.
Anyways...
What I'm trying to do is use the balls Y value to determine it's size.
So as the Y value is increasing, the ball's size is decreasing
Thanks.
Using time isn't the best way however, because the balls are going to change speeds.
So if one ball happens to be really slow, it will shrink too soon and like wierd a visa versa.
Anyways...
What I'm trying to do is use the balls Y value to determine it's size.
So as the Y value is increasing, the ball's size is decreasing
Thanks.
Comments
constrain attribute self size width and self size height to self.position.y/2
The ball is spawned on the bottom of the screen, so lets say it starts at Y=1
then climbs up to Y=125
1/2= .5
125/2 = 62.5
_______________
http://www.thatgameforum.com/
http://gshelper.com/
http://www.youtube.com/user/GameSaladCookbook#p/
http://gamesalad.com/wiki/
http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./Home.html
http://www.gamesalad.es/
http://thatgameforum.com/threads/gs-videos.360/
my email: calvin9403@hotmail.com
my skype: calvin9403
Calvins solution worked the best I had to dial in the numbers a little but I got it where I want!