Jump to content

  • Log In with Google      Sign In   
  • Create Account


Mussi

Member Since 12 Oct 2004
Offline Last Active Today, 11:04 AM
*****

Posts I've Made

In Topic: VHS Story

07 June 2014 - 04:49 AM

Indiana Jones, ??, ??, Ninja Turtles(Donatello), Mortal Kombat(raiden).


In Topic: How to implement a cleaner code for jump up in air and fall down to ground me...

30 May 2014 - 09:04 PM

If you're trying to mimic a more realistic jump(i.e. not jumping higher while holding the jump button), you should add velocity instead of acceleration in the vertical direction the first time the jump button is pressed and the player is on the ground. In real life you only accelerate upwards while your feet are on the ground, once your feet leave the ground you have an upwards velocity and start accelerating downwards due to gravity.


In Topic: Calculating healthbar percentage

29 May 2014 - 12:40 PM

Your currentHealth and maxHealth variables are integers, meaning that the result of currentHealth / maxHealth will also be an integer, which means the result of that operation will either be either 0 or 1. Integers are always rounded down, so you'll end up with 0 if currentHealth < maxHealth. You can go two ways here, cast the numbers to floating point numbers and cast back to an integer in the end, or simply multiply by 177 before you divide.


In Topic: Need help with 2D puddle

26 May 2014 - 06:05 PM

What about a darker, tar like substance?


In Topic: Need help with 2D puddle

25 May 2014 - 05:07 AM

I sort of like yours better, maybe because of the shape. I like the looks of your blood, not sure if you can make that look better in a stylized fashion. Btw, is this a circle or a sphere? You mentioned flat terrain, but I keep seeing this as a sphere.


PARTNERS