I created a object that lets you jump another time after the double jump if you collect it (like in Boshy).
I took the code from I wanna be the 8-bit (Sorry Seph, but your game is to appealing to not be raided xD).
Now i wanted to create a Quadjump, You do a Double Jump, collect it, and then can do another 2 Jumps without touching the Ground.
How do i make it?
Here is the code for the Trimple-Jump from 8-bit:
Create:image_speed = 1/4;
active = 1;
timer = 0;
realY = y;
wobbleDistance = 2;
stimer = random_range(-2,2);
Step:if active = 0
{ timer += 1; }
if timer > 100
{ visible = 1; active = 1; timer = 0; }
y = realY + sin(stimer) * wobbleDistance;
stimer += 0.05;
Collisson with Player:if active = 1
{
player.screw = 0;
player.djump = 1;
active = 0;
visible = 0;
}