Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-28-2010, 11:25 PM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Gani Script and params

Well, here's my issue, I don't know if there's a better way, I havent really done anything like this in Gani Script but, I'm showing a gani and trying to rotate in the script. The angle I want the gani to shown is being passed through PARAM1. I've tried a few thing but it doesnt rotate

Here's the script I have thus far, short and not so sweet

PHP Code:
SCRIPT
function onPlayerEnters()
{

  
onTimeout();
}

function 
onTimeout()
{

  
findImg1).rotation PARAM1;

  
setTimer0.05);

}
SCRIPTEND 
I've tried player.rotation as well, I'm not so sure how to use ROTATEFFECT or any of that cause I can't find any documentation on it.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
  #2  
Old 09-29-2010, 07:38 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
It should be params[0] with gani scripts (while PARAM1 is correct for the actual animation file) and this only exists within the onPlayerEnters() function where you could save it as a this.var, if this is a constant angle rather than continual rotation you don't really need to be doing it on a timeout.
Reply With Quote
  #3  
Old 09-29-2010, 09:05 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Thank you, I'll try this tomorrow when I get on.

EDIT: Well after playing around with it using your advice, it worked! Thank you. rep++ =]
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!

Last edited by MrOmega; 09-29-2010 at 05:21 PM..
Reply With Quote
  #4  
Old 09-08-2011, 12:43 PM
irock1 irock1 is offline
Registered User
Join Date: Aug 2011
Posts: 20
irock1 can only hope to improve
15251 -6 -40,
__________________
YOUR A
Reply With Quote
  #5  
Old 09-08-2011, 08:05 PM
ff7chocoboknight ff7chocoboknight is offline
Skyzer Zolderon
ff7chocoboknight's Avatar
Join Date: Dec 2006
Location: New Hampshire, United States
Posts: 725
ff7chocoboknight is a glorious beacon of lightff7chocoboknight is a glorious beacon of lightff7chocoboknight is a glorious beacon of light
Send a message via AIM to ff7chocoboknight Send a message via MSN to ff7chocoboknight
Quote:
Originally Posted by irock1 View Post
15251 -6 -40,
...?
__________________
Reply With Quote
  #6  
Old 09-30-2011, 10:49 AM
irock1 irock1 is offline
Registered User
Join Date: Aug 2011
Posts: 20
irock1 can only hope to improve
idk I just....
__________________
YOUR A
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:12 AM.


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