Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   Gani Script and params (https://forums.graalonline.com/forums/showthread.php?t=134260655)

MrOmega 09-28-2010 11:25 PM

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.

ffcmike 09-29-2010 07:38 AM

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.

MrOmega 09-29-2010 09:05 AM

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++ =]

irock1 09-08-2011 12:43 PM

15251 -6 -40,

ff7chocoboknight 09-08-2011 08:05 PM

Quote:

Originally Posted by irock1 (Post 1667445)
15251 -6 -40,

...?

irock1 09-30-2011 10:49 AM

idk I just....


All times are GMT +2. The time now is 11:44 PM.

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