var time_change=0; while(1) { time_change+=time_step/16; if(time_change>1) { time_change+=1; my.skin+=1; } if(time_change>=3) time_change=0; wait(1); }
action flipskins() { while (1) { my.skin = my.skill1 % 32; // 32 Skins my.skill1 += time_step; // 16 skins per second wait (1); } }
var dist_to_move=0; var skin_count=0; // vSpeed = movement speed; while(1) { // ...STUFF dist_to_move=(vSpeed*3)*time_step; skin_count=vSpeed/dist_to_move; c_move(my,vector(vSpeed*time_step,nX,nX),nullvector,STUFF); my.skin=integer(skin_count); 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