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_oItem_Other_4.gml

11 lines
285 B

if global.item[itemid]
{
myposx = floor((x / 320))
myposy = floor(((y - 8) / 240))
mapposx = (myposx + global.mapoffsetx)
mapposy = (myposy + global.mapoffsety)
if (distance_to_object(oItem) > 180)
global.dmap[mapposx, mapposy] = 2
instance_destroy()
}