I think so.
What you are saying is *time isn't necessary because it's already there as it's updated every set interval, right?
I tested it out, and I'm happy to see it working.
I wanted to use float but I didn't know how big is 1f in comparison to 1 pixel so, I used integers and doubles, for now. :-P
I plugged this in as gravity:
double gravity=980/360; (converting at 1m=100pixels, and 60 delta = second)
I made the heroYspeed decrease in value when key.space is inputted, so that he jumps with deceleration and falls with acceleration.
I want to tweak the values around a bit, but I think I will move on to horizontal movement and friction. Khan academy, maybe?
codingnoobieMember Since 02 Sep 2012
Offline Last Active Sep 10 2012 09:37 PM