[ENG] Learn to Code... Gravity and Movement! The bases of a platformer Gravity: If touching floor and space pressed, jump, if touching floor but space is not pressed, set y velocity to 0, and, if not touching floor, change y velocity by -1. Movement: Let me introduce you to... Boolean subtractions!: (Left - Right) * Velocity (0 - 0) * 5 = 0 (1 - 0) * 5 = 5 (0 - 1) * 5 = -5 (1 - 1) * 5 = 0 [ESP] Aprende a programar... ¡Gravedad y movimiento! Las bases de un juego de plataformas. Gravedad: Si estoy tocando el suelo y toco espacio, debería saltar, si toco el suelo y no toco espacio, pongo la velocidad y a 0, y si no toco el suelo, cambio la velocidad y en -1. Movimiento: Permíteme presentarte... ¡las restas de condiciones!: (Izquierda - Derecha) * Velocidad (0 - 0) * 5 = 0 (1 - 0) * 5 = 5 (0 - 1) * 5 = -5 (1 - 1) * 5 = 0