This code is from my previous engine so I guess it could help you
Make sure this variable is present on the create event.
Create Event
Step, Begin or End Step Event.
Use this code WHEN you bump the block. (You can also generate an item on this event.)
If you need help with GM, feel free to drop me a PM. I'll try to reply as soon as possible.
Make sure this variable is present on the create event.
Create Event
Code:
ready = 0;
Step, Begin or End Step Event.
Code:
if ((vspeed > 0) && (y > ystart-4)) {
vspeed = 0;
y = ystart;
ready = 2;
//Add here the bumped block image.
}
if (ready == 1)
vspeed += 0.5;
Use this code WHEN you bump the block. (You can also generate an item on this event.)
Code:
if (ready == 0) {
ready = 1;
vspeed = -4;
}
If you need help with GM, feel free to drop me a PM. I'll try to reply as soon as possible.