View Single Post
  #9  
Old 09-08-2013, 06:03 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
Quote:
Originally Posted by sssssssssss View Post
I saw this a few weeks ago, but with how small of a thing I'm doing it's a bit much, and the work to redo all my stuff is a bit cumbersome at this point (I'd rather have one way than 2 separate ones for the same thing in different places), but it is much nicer don't get me wrong.


I went ahead and just dropped the idea I was doing. Keeping this open for the answers though, maybe something will help someone else possibly.
Can't really test it right now but it looks like you want to do an if/else statement instead of two if statements, try this and see if it works?

PHP Code:
SCRIPT
function onPlayerEnters()
{

  
playparams1]);
  
this.moveway params2];
  
rollImg();

}

function 
rollImg() 
{

  if ( 
this.moveway 2
  {

    echo( 
"left up");
    
    for ( 
findImg1).rotation 0findImg1).rotation > (-(pi)); findImg1).rotation -= (pi 4);)
      
sleep(0.05);
 
  }

  else 
  {

    echo( 
"down right1");
    
    for ( 
findImg1).rotation 0findImg1).rotation < (pi); findImg1).rotation += (pi 4);)
      
sleep(0.05);
  
  }
}
SCRIPTEND 
__________________
Deep into the Darkness peering...

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