Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   player.move() (https://forums.graalonline.com/forums/showthread.php?t=61562)

jake13jake 10-03-2005 07:04 AM

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.

ZeLpH_MyStiK 10-04-2005 03:18 AM

that can be easily scripted, using distance formula and loops would be one way.

napo_p2p 10-04-2005 04:40 AM

Quote:

Originally Posted by ZeLpH_MyStiK
that can be easily scripted, using distance formula and loops would be one way.

Yes. Especially with GS2, since you can use parameters, it would be very easy to make, for example: movePlayer(dx, dy, time);

jake13jake 10-05-2005 03:12 AM

yea, but on a serverside script I mean.

Velox Cruentus 10-05-2005 11:40 PM

Laziness should not be something to reward. There's already a way; find it.

jake13jake 10-10-2005 07:10 AM

Quote:

Originally Posted by Velox Cruentus
Laziness should not be something to reward. There's already a way; find it.

I already did, but what the hell do you call vecx(), vecy() functions if not laziness. They could just be dir-1, dir-2. It just makes things make more sense. I ended up just doing scripting it, but I still say it would be nice if you could use the move function on players.


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.