Quote:
Originally Posted by Salaisuus
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.