Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualcodingnoobie

Posted 10 September 2012 - 01:42 PM

@Bacterius
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. :D

@BeerNutts
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. Posted Image

I want to tweak the values around a bit, but I think I will move on to horizontal movement and friction. Khan academy, maybe?

#2codingnoobie

Posted 10 September 2012 - 01:42 PM

@Bacterius
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. :D

@BeerNutts
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. Posted Image

I want to tweak the values around a bit, but I think I will move on to horizontal movement and friction. Khan academy, maybe?

#1codingnoobie

Posted 10 September 2012 - 01:35 PM

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. :D

I plugged this in as gravity:

double gravity=980/360; (converting at 1m=100pixels, and 60 delta = second)

and made the heroYspeed decrease in value when key.space is inputted, so that he jumps with deceleration and falls with acceleration. Posted Image

I want to tweak the values around a bit, but I think I will move on to horizontal movement and friction. Khan academy, maybe?

PARTNERS