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.
AM2Rogue/Export_Code/gml_Object_oCameraWallR_Ste...

26 lines
653 B

if (first_step == 1)
{
if (oCharacter.x >= x && oCharacter.x <= (x + areax) && (oCharacter.y - 12) <= y && (oCharacter.y - 12) >= (y + areay))
{
if (oCamera.focus == 0)
{
oCamera.focus = 1
oCamera.focustime = 1
}
oCamera.focustime += 1
oCamera.lockx = 1
if (oCamera.x >= x)
{
oCamera.targetx = x
oCamera.snapx = 0
oCamera.ratiox = 2
if (oCamera.xprevious < x)
oCamera.x = x
}
oCamera.alarm[2] = 2
oCamera.smoothout = 15
oCamera.smoothin = 15
}
first_step = 0
}