Page 1 of 1

Player Script Jump?

Posted: Thu Jul 09, 2015 7:22 pm
by Vertex
Hello, it failed to set a script for my player skip to precionar the space key. The idea is to do it as the default player, the trecla is preciona this jump and although it has the key pressed, the jump occurs again when I release the space key and pressed again.

Any suggestions, I've been using ForceUp, but not if this is the most recommended, using IskeyDown (...)

I advise?

Re: Player Script Jump?

Posted: Thu Jul 09, 2015 10:59 pm
by Vertex
Ok, no problem. :D

Code: Select all

	// Pawn Jump.
		if((Jugador.IsKeyDown(Camara.Input.Key.ESPACIO)=true) and (Camara.Config.Jugador.SALTA=false))
		{
			
			if (Camara.Config.Jugador.SALTA = false)
			{
				
				Jugador.ForceUp(50);
			}
			
			Camara.Config.Jugador.SALTA = true;
		}
		
		
		if((Jugador.IsKeyDown(Camara.Input.Key.ESPACIO)=false) and (Camara.Config.Jugador.SALTA=true))
		{
			Camara.Config.Jugador.SALTA = false;
		}