Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

324
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda