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_oMapCamera_Step_...

29 lines
653 B

if (oMapCursor.state == 0 || oMapCursor.state == 2)
{
if (oControl.kUp > 0)
targety -= 2
if (oControl.kDown > 0)
targety += 2
if (oControl.kLeft > 0)
targetx -= 2
if (oControl.kRight > 0)
targetx += 2
if (targety < 120)
targety = 120
if (targety > 448)
targety = 448
if (targetx < 160)
targetx = 160
if (targetx > 472)
targetx = 472
}
if (oMapCursor.state == 1 && instance_exists(oMapMarker))
{
targetx = (oMapMarker.x + 4)
targety = (oMapMarker.y + 4)
}
if (targetx != x)
x += ((targetx - x) / 8)
if (targety != y)
y += ((targety - y) / 8)