America Freeman

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

436 Neutral

About America Freeman

  • Rank
    Newbie
  1. Is hacky code allowed in industry?

    I have seen something similar to what you are referring to as a "hack" many times in the software development industry. I am not sure if this is the official name for it, but at my job we refer to it as a "latch". It is usually used to stop normal functionality when the form "IsLoading" or something of the sort.
  2. Life of a Level Designer

  3. [quote name='Bacterius' timestamp='1355247230' post='5009462'] [quote name='TheChubu' timestamp='1355246155' post='5009456'] Or just set up the thing so the player can't jump if the character isn't on the ground. [/quote] This is the correct solution. Really, all jumping is, is applying a downward force to the ground, which applies an upward force to us and lifts us up in the air against gravity. If we're not in contact with the ground, we can't jump and gravity pulls us back down with no force to push us back up. [/quote] If he was going for realistic physics, yes, but it sounds like he wanted jumping to work where the longer you held down the jump key, the higher you jump. It's the kind of jumping you see in many platformers. And my mistake, Mister Fuzzy's correction of swapping when the key is [i]released [/i]is the correct way to go.
  4. You could create a bool where jumping only works if it's false. Set it to true once they reach the 50 pixel limit, and then reset it back to false when they're touching the ground again. Does that make sense?