10-04-2014, 08:36 AM
Ah, thanks.
BTW, I might really need a lil' bit help right now (I also posted the problem at MFFG)
Basically, the World Boss is riding a flying vehicle.
When only 2 HP are left, then the World Boss starts stomping the ground with the vehicle and then flies back up again.
This is working, but the World Boss never drops an enemy after stomping a few times.
The Step Event:
My guess is that the World Boss isn't in "stomp=0" long enough, but I have no idea, how to solve that problem...
BTW, I might really need a lil' bit help right now (I also posted the problem at MFFG)
Basically, the World Boss is riding a flying vehicle.
When only 2 HP are left, then the World Boss starts stomping the ground with the vehicle and then flies back up again.
This is working, but the World Boss never drops an enemy after stomping a few times.
The Step Event:
Code:
//Movement Code
if fly = 0
and ready = 0
and throw != 1
and throw != 3
and defeated = 0
{
if hitpoints <= 2
{
if stomp = 0
{
move_towards_point(obj_mario.x,192,3)
stomp = 1
}
if hspeed > 0
direct = 1
if hspeed < 0
direct = -1
if ballcounter > 0
ballcounter += -1
if ballcounter <= 0
{
if stomp = 0
{
alarm[7] = 1
ready = 1
throw = 3
ballcounter = 1
vspeed = 0
hspeed = 0
}
else
ballcounter = 0
}
}
else
{
//Code that has nothing to do with the problem
}
}