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.
AM2R-Multitroid-Fair-Team-PVP/Export_Code/gml_Object_oTransition_Step...

34 lines
589 B

if (global.transitiontype == 0)
{
if (fade < 1)
fade += 0.1
else
event_user(0)
}
if (global.transitiontype == 1)
{
if (fade < 1)
fade += 0.1
else if (moveplayer < 30)
{
with (oCharacter)
{
x -= ((x - global.transitionx) / 10)
y -= ((y - global.transitiony) / 10)
}
moveplayer += 1
}
else
event_user(0)
}
if (global.spectatorIndex != -1)
{
with (oCharacter)
{
x = global.targetx
y = global.targety
oCamera.x = x
oCamera.y = y
}
}