Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #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
  #2  
Old 10-24-2007, 04:58 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You can also use the "spin" variable. The text rotation is not working fine on Windows yet, can check the polygon thing though.
Reply With Quote
  #3  
Old 10-24-2007, 07:49 PM
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
I only want to rotate the text a certain degree, the script above was just a test.

And I'm using Linux, so the Windows issue does not apply here....
__________________
◕‿‿◕ · 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
  #4  
Old 10-24-2007, 10:30 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
So try the "spin" variable anyways.
__________________
Reply With Quote
  #5  
Old 10-25-2007, 12:21 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
If he wants it to stay at one degree of rotation, spin isn't going to help.
Reply With Quote
Reply


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 05:54 PM.


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