Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-03-2005, 07:04 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #2  
Old 10-04-2005, 03:18 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
that can be easily scripted, using distance formula and loops would be one way.
__________________
Reply With Quote
  #3  
Old 10-04-2005, 04:40 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
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);
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 10-05-2005, 03:12 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
yea, but on a serverside script I mean.
Reply With Quote
  #5  
Old 10-05-2005, 11:40 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Laziness should not be something to reward. There's already a way; find it.
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #6  
Old 10-10-2005, 07:10 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.