Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

317
Views
How can I make my game character stop on the ground level

I am struggling a bit with a piece of code. The point is that a "game character" should jump when the spacebar is pressed (to 100 px above floor-level) and fall down after. But in my case, the game character jumps once to the right height, falls to the ground and then jumps again and fly up to the sky, just to disappear. Each time I press the spacebar it comes back, just to jump another time to the sky. Cam someone just looks at my code and give me a hint of what I am doing wrong?

the code

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

if (isFalling == false){
  gameChar_y >= floorPos_Y;
}

It seems like the problem might be here. That's just a boolean expression and you're not modifying anything.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!