Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-24-2007, 01:00 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Change the rotation of polygons and text

I tested the rotation of the various types of images like so:
NPC Code:
//#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.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.