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.
39 lines
1.0 KiB
39 lines
1.0 KiB
if instance_exists(oCharacter)
|
|
{
|
|
if ((direction == 0 || direction == 45 || direction == 315) && oCharacter.xVel > 0)
|
|
x += oCharacter.xVel
|
|
if ((direction == 180 || direction == 135 || direction == 225) && oCharacter.xVel < 0)
|
|
x += oCharacter.xVel
|
|
if (direction == 270 && oCharacter.yVel > 0)
|
|
y += oCharacter.yVel
|
|
}
|
|
if smissile
|
|
speed += 0.5
|
|
if (y > global.waterlevel && global.waterlevel != 0)
|
|
{
|
|
if (inwater == 0)
|
|
instance_create(x, global.waterlevel, oSmallSplash)
|
|
inwater = 1
|
|
}
|
|
else
|
|
{
|
|
if (inwater == 1)
|
|
instance_create(x, global.waterlevel, oSmallSplash)
|
|
inwater = 0
|
|
}
|
|
if (x < ((view_xview[0] - 48) - (oControl.widescreen_space / 2)) || x > (((view_xview[0] + view_wview[0]) + 48) + (oControl.widescreen_space / 2)) || y < (view_yview[0] - 48) || y > ((view_yview[0] + view_hview[0]) + 48))
|
|
{
|
|
instance_destroy()
|
|
trail.speed = speed
|
|
trail.alarm[0] = 30
|
|
with (flame)
|
|
instance_destroy()
|
|
}
|
|
trail.x = x
|
|
trail.y = y
|
|
if instance_exists(flame)
|
|
{
|
|
flame.x = x
|
|
flame.y = y
|
|
}
|