View Single Post
  #10  
Old 11-30-2006, 04:42 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Salaisuus View Post
Ehh?
Well you must have got it by now but just incaise and because I've never
before been able to ansver questions here:

PHP Code:
function onActionpulled()
{
if (
player.dir = 3)
{
player.x -= 1;
x -= 1;
}
} 
Whee.
"This is the first time I've ever used my power to help some one... Its strange,
it feels... Kind of... Nice."
PHP Code:
function onActionPulled() {
  
player.x += -vecx(player.dir);
  
player.y += -vecy(player.dir);
  
x += -vecx(player.dir);
  
y += -vecy(player.dir);
} 
Would probably accomplish the same thing, without having 4 different if statements.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote