View Single Post
  #5  
Old 09-07-2013, 05:06 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
ROTATEEFFECT only works once with each sprite number. Also the rotation number is in radians.

To show the rotation you need to script it. You can manipulate sprites by using findImg( <sprite number>).

PHP Code:
GANI0001
SPRITE    1          PARAM1    0    0   32   32 Param1

SINGLEDIRECTION

ANI
   1  
-8  -8
ANIEND
 
SCRIPT 
function onPlayerEnter()
{

  for ( 
findImg(1).rotation 0findImg1).rotation < ( pi); findImg1).rotation += ( pi 8);)
    
sleep0.05);

}
SCRIPTEND 
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 09-07-2013 at 06:44 AM..
Reply With Quote