G
GalGames
Guest
I want to set Double-Jump to my sprite and I get this error. My friend gave me his codes of "Double-Jump". He uses Game Maker Studio 1 and I use Game Maker Studio 2. He said the codes he gave me would serve on Game Maker Studio 2 and I get "Unnecesary expresion DoubleJump used as a statement. Here are the codes:
In Create event DobleJump is defined as 1;
Code:
//Salto
if (keyJump && bolGround) Vy = -VyMax;
//Doble Salto
if (keyJump && !bolGround and (DobleJump > 0))
{
Vy = -VyMax;
DobleJump==;
}