Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-05-2006, 08:14 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Rotating GANI Sprites

Yes this is a gani question but I don't think anyone in there can anwser this...

I can do:
player.ani.sprites[index].rotation = float;

This will rotate the sprites in my gani right?
Now I want to be able to rotate the sprites directly from the gani.
What would be PERFECT would be something much like the COLOREFFECT and ZOOMEFFECT in the gani text like this:
ROTATIONEFFECT 200 <myrotationnumber>

Another option might be to simply rotate the sprites when the gani is initialized (via gani script)...I'll look into this one some more.

Anyone got any ideas?
(And if you could add the ROTATIONEFFECT thing to the next version of graal it would be wonderful)
__________________
Do it with a DON!
Reply With Quote
  #2  
Old 07-05-2006, 12:43 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Stefan
For rotating images you can either:
- use the GS2 function findimg(index) and use the attribute "rotation" (see Graal Bible):
PHP Code:
with (findimg(200)) {
  
player.x;
  
player.y;
  
image "bush.png";
  
rotation pi/2;

- set sprite attributes in a gani by editing the gani with a text editor and add a line like this
NPC Code:

ROTATEEFFECT spritenumber angle


There you go.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #3  
Old 07-07-2006, 02:39 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by xXziroXx
There you go.
Never knew that worked...thanks
(Obviously more knowledgable then those #gscript guys e_e)
__________________
Do it with a DON!
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 11:17 AM.


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