action guard_with_pointer() { guard1 = my; while (1) { ent_animate(my, NULL, 0, 0); if (key_q && guard_life > 0) { attack_percentage = 0; while(attack_percentage < 100) { ent_animate(my, "attack", attack_percentage, NULL); attack_percentage += 3 * time_step; wait(1); } } wait (1); } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de