You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
578 B
16 lines
578 B
msl = instance_create(x, (y + 4), oAutoadMissile)
|
|
if (room == rm_a3a22)
|
|
{
|
|
msl.hspeed = (((xVel * 0.25) + (oControl.kLeft * -1)) + (oControl.kRight * 1))
|
|
msl.vspeed = min(-1.5, (yVel * 0.8))
|
|
hasmissile = 0
|
|
}
|
|
if (room == rm_a3a28)
|
|
{
|
|
mvel = ((oControl.kLeft * -1) + (oControl.kRight * 1))
|
|
msl.hspeed = ((xVel * 0.25) + (((clamp(oControl.kMissilePushedSteps, 0, 20) / 2) + 3) * mvel))
|
|
msl.vspeed = min(-2, (((yVel * 0.8) + ((clamp(oControl.kMissilePushedSteps, 0, (oControl.kUp * 20)) / 4) * -1)) + (oControl.kUp * -3.8)))
|
|
hasmissile = 1
|
|
miscd = 5
|
|
}
|