![]() |
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. |
that can be easily scripted, using distance formula and loops would be one way.
|
Quote:
|
yea, but on a serverside script I mean.
|
Laziness should not be something to reward. There's already a way; find it.
|
Quote:
|
| All times are GMT +2. The time now is 09:14 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.