![]() |
speedy quick!
Im trying to make the player go faster when hes not using the weapon and then slower when the player is, but i am having a hard time finding the variable >:(
i tryed: player.speed -= 1; player.speed = .1; but none of these work sadly :( can anyone help me out? |
Hmm..there is no specific variable for determining the player's speed. Use a keydown check or timeout and first check player.dir for the direction and then just add to or minus from the player's x and y accordingly to increase/decrease speed.
|
Well, as Grey stated there is no speed variable for the default movement.
You could do as Grey said, doing keydown checks etc.. or you have to make your own custom movement system.. |
LOL XD.
Wait, wait, wait. I am so sorry. Erm, that's not going to work as player.speed is not a player variable. Player is a built in TGraalVar and you can't make vars for it I don't think. You have to use a a custom movement system or something that emulates Graal movement that has a set speed variable. |
Quote:
Quote:
Quote:
|
Quote:
example: PHP Code:
Quote:
|
Player is actually a built-in TServerPlayer (or specifically a TPlayer if you are talking about the client) and with almost all objects, you can give it custom variables. I think that is how GK's mud system work or at least partially, it syncs mud data from the server to the client and stores both on the server side and client side TServerPlayer objects. I'm only concluding this from pure guessing though and my work on GK has no influence on my guess.
|
Quote:
|
| All times are GMT +2. The time now is 02:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.