void rotateperhour(ENTITY* ent) { float ticks; while(1) { ticks = cycle(ticks+time_frame, 0, 57600); ent.pan = (ticks / 16) / 10; //or ent.pan = ticks / 160; wait(1); } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de