Thread: Simple Movement
View Single Post
  #8  
Old 10-06-2007, 07:55 PM
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 Crow View Post
You could do that without a capital A ;P
Anyways, I think you should add the checks, just for the sake of it. May help out some peeps.
It doesnt really matter how the A is...

update

PHP Code:
//#CLIENTSIDE 

function onCreated()
{

  
disAbleDefMovement();
  
onTimeout();
}

function 
onTimeout()
{
  
  
nx player.x;
  
ny player.y;

  
nx += (( keydown(3)) - ( keydown(1)))/16;  
  
ny += (( keydown(2)) - ( keydown(0)))/16;  

  if ( !( 
onwallnx 1.5ny 2)))  {

    
player.nx;
    
player.ny;
  } 

  
setTimer0.05);

__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 10-06-2007 at 08:07 PM..
Reply With Quote