ive tried thsi but it only goes up to a certain spped
mob
verb
start()
walk(src,src.dir,-1000)
any other ways?
ID:269263
![]() May 1 2005, 5:02 pm
|
|
Hi i mtrying to make my guy move really fast but i want it so i can set the speed of how fast hes really going
ive tried thsi but it only goes up to a certain spped mob any other ways? |
DaGoat787 wrote:
Well with that i just added a verb that would increase your game speed. mob I don't know if that's what you was looking for,nor i know how you Move() goes so i did this. You might want to change that to something like mob Basically that just makes it make more sense. 1 is assumed to be a slow number by gamers, and 10 is assumed to be fast, because it's a larger number, and a larger speed in video games is typically a good thing. ~Polatrite~ |
thanks but its still going the same speed as before its fast but not fast enouge for what i want
ill keep trying thanks alot for your help |
You are trying to move faster than once per tenth of a second, aren't you? That is impossible to do while still keeping Byond's movement animation/sliding. To move faster, you will have to call Move multiple times per tick or just move the object multiple spaces.
atom/movable/proc/move_multiple_tiles(dir,dist) That should move an object multiple tiles at once, leaving behind images on the tiles skipped that disappear after a tenth of a second. This will not call Entered for the turf objects skipped open, as that would cause problems for turfs which relocate objects in Entered, especially if they do so with a delay. The rest of your code (client directional functions and AI) would have to be editted to make use of it as well. |
A tick:
This is the smallest unit of time (one server tick) measured in 1/10 seconds. The duration of events that take some finite amount of time (like sleep) will be rounded to a whole number of ticks. Which means, that your limited to 10 commands a second. Which means you should only be able to move 10 sqaures in 1 second. |
Well with that i just added a verb that would increase your game speed.
I don't know if that's what you was looking for,nor i know how you Move() goes so i did this.