Tolnaftate2004

10-24-2007, 02:00 AM

I tested the rotation of the various types of images like so:

//#CLIENTSIDE

function onCreated() {

this.img = IMAGE;

this.img.layer = 7;

onTimeout();

}

function onTimeout() {

this.img.rotation = (this.img.rotation + pi/90) MOD (2*pi);

timeout = 0.05;

}

Note: MOD is modulo, but I get a bad request when it's in the post...

One can define an image and apply a rotation, and the image will rotate about its center. Cool. One can define a polygon and apply a rotation, and the polygon will fly about the screen in a circle with radius dependent upon the polygons size (I'm guessing). One can define a string of text to be displayed on the screen, and a rotation to be applied, and the letters will rotate individually getting narrow or wide and then flipping upside-down or disappearing all together.

Considering all of these things share a datatype, can we make it so that they all act that same when a rotation is applied? If they all rotated the same way an image does, that would be the most useful, I think.

//#CLIENTSIDE

function onCreated() {

this.img = IMAGE;

this.img.layer = 7;

onTimeout();

}

function onTimeout() {

this.img.rotation = (this.img.rotation + pi/90) MOD (2*pi);

timeout = 0.05;

}

Note: MOD is modulo, but I get a bad request when it's in the post...

One can define an image and apply a rotation, and the image will rotate about its center. Cool. One can define a polygon and apply a rotation, and the polygon will fly about the screen in a circle with radius dependent upon the polygons size (I'm guessing). One can define a string of text to be displayed on the screen, and a rotation to be applied, and the letters will rotate individually getting narrow or wide and then flipping upside-down or disappearing all together.

Considering all of these things share a datatype, can we make it so that they all act that same when a rotation is applied? If they all rotated the same way an image does, that would be the most useful, I think.