
10-03-2005, 07:04 AM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
player.move()
|
It would be very nice if the move function were able to work on the player.
ex. some kind of NPC that warps you back to the beginning of a level.
function onPlayerTouchsMe() {
setani("bumper_warper",this.color_array);
disabledefmovement;
player.move(newx-player.x,newy-player.y,3,8);
}
function onPlayerMovementFinished() {
setani("idle","");
enabledefmovement;
}
as opposed to:
function onPlayerTouchsMe() {
player.x = newx;
player.y = newy;
setani("idle","");
}
wouldn't that just look so much smoother.
of course you can already do this clientside in a timeout, just not quite so nicely. |
|
|
|