Thread: flying
View Single Post
  #12  
Old 11-10-2009, 11:21 AM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
i've got my jumpscript to were i like it.
For the jumping part that is, but i haven't been able to add it so that i can jump over/on things, i can't seem to get the thing used for nthe staffboots in there working. i understand how it works, but i can't get it right.
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code,key)
{
  if( 
key == "f")
  {
    if(
player.0)
    {
      
replaceAni("walk""idle");
      
temp.0;
      while(
temp.4)
      {
        
temp.+= 0.5;
        
player.+= 0.2/temp.i;
        
sleep(0.05);
        if(
player.1)
        {
          
settimer(0.05);
        }
        else if(
temp.== 4)
        {
          
temp.0;
          while(
temp.4)
          {
            
temp.+= 0.5;
            if(
player.0.5)
            {
              
replaceAni("walk""walk");
              
player.0;
            }
            else
            {
              
player.-= 0.2*temp.i;
              
sleep(0.05);
            }
          }
        }
      }
    }  
  }

__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote