var trig_percentage = 0; function turn_on() { trig_percentage = 1; } action trigger_switch() { t_trigger=me; //this is a pointer defining the entity listed at the top on_enter = turn_on; while(1) { If(trig_percentage) { trig_percentage %= 100; trig_percentage += 2*time_step; ent_animate(me, "top", trig_percentage, ANM_SKIP); } wait(1); } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de