Thread: Player Speed
View Single Post
  #9  
Old 12-31-2012, 04:10 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Quote:
Originally Posted by Tricxta View Post
I don't understand what you're saying but... maybe this is what you're after?

PHP Code:
//#CLIENTSIDE
function onKeyDown(code){
  if (!
playerswimming)return;

  
//is on water..

Perhaps.. >_>
I'm trying to see if there is some equivalent to something like player.defaultwalkspeed.

Basically I'm just trying to stay away from the typical:

if player in water
timeout>timer

disabledefmovement
if(dir keys)
player.x/y +-


I really don't want to have to disabledefmovement if there is another logic to slowing down a player if they are in water/swimming. I tried player.x/y -+= 0.001 and got callstack errors and loop exceeding limits. I could avoid that only moving the x/y onkeypressed I suppose but was just hoping there was a different logic I could approach (like me not even knowing player.defaultwalkspeed was there).
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote