this one´s baffling me:
- Code: Select all
//debug text actor, draw event
debug1 = player.angle;
sprintf(text, "angle %i", debug1);
my player object rotates (angle+=newangle) but the readout doesnt work. why?
it always shows "angle 0" on screen?
//debug text actor, draw event
debug1 = player.angle;
sprintf(text, "angle %i", debug1);
angle+=newangle;
newangle+=0.1;
animpos = (angle*360)/nframes;
angle+=newangle;
newangle+=0.1;
animpos = (angle*360)/nframes;
sprintf(debugText.text, "angle %i", (int)angle);
animpos = (angle*360.0)/nframes;
animpos = (angle/360.0)*nframes;
Users browsing this forum: No registered users and 1 guest