Untitled
unknown
plain_text
3 years ago
891 B
2
Indexable
bool Survolable(this Object*) { return this.GetProperty("Survolable") > 0 && this.View > 0; } function MetPasSurvole(this Object*){ if (object[i].Survolable()) { if (object[i].GetProperty("Survolable") > 1) object[i].SetView(object[i].View,object[i].Loop,2); else object[i].SetView(object[i].View,object[i].Loop,0); } } function on_event (EventType event, int data) { int i = 0; while (i < Room.ObjectCount) { object[i].MetPasSurvole(); i++; } } Object* anciennement_survole; function repeatedly_execute() { Object* survole = Object.GetAtScreenXY(mouse.x,mouse.y); if (survole!=anciennement_survole){ if (anciennement_survole != null) anciennement_survole.MetPasSurvole(); if (survole != null){ anciennement_survole = survole; if (survole.Survolable()) survole.SetView(survole.View,survole.Loop,2); } } }
Editor is loading...