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