ID:180309
 
I read that this was a bug but is there an alternative to the walking animation. I tried slowing it down with world.tick_lack = 2 but that just makes it worse cuz you stop pressing the key and you're still walking. Plus, it completely screws up the flick("kick",src) thing cuz it doesn't show the animation at all til you wait like 30 sec. Any other alternatives I'd be happy to know???
dont use tick, use this

mob/var/tmp/last_move = -100
mob/var/move_delay = 1.5

mob/Move()
if(world.time < src.last_move + src.move_delay)
return
else
src.last_move = world.time
return ..() //do what mob/Move() normally does

and set the move_delay higher for slow movemtn, or lower for faster movement
In response to FIREking
On 7/24/01 9:34 pm FIREking wrote:
dont use tick, use this

mob/var/tmp/last_move = -100
mob/var/move_delay = 1.5

mob/Move()
if(world.time < src.last_move + src.move_delay)
return
else
src.last_move = world.time
return ..() //do what mob/Move() normally does

and set the move_delay higher for slow movemtn, or lower for faster movement

Thanks! =)
In response to progman84
welcome
In response to FIREking
On 7/24/01 9:38 pm FIREking wrote:
welcome

Ok, say I want a computer to run for a certain amount of time, lets say 5 min. Then after 5 min it'll say view() << "the computer has shut down" how would I use the time procedure in that?
In response to progman84
spawn(3000)
view() << "The computer has shut down"

or(im not sure on the time)

spawn(5000)
view() << "The computer has shut down"

im not too sure where or how your are going to call this, thats for you to decide
In response to FIREking
On 7/24/01 10:19 pm FIREking wrote:
spawn(3000)
view() << "The computer has shut down"

or(im not sure on the time)

spawn(5000)
view() << "The computer has shut down"

im not too sure where or how your are going to call this, thats for you to decide

That won't stop the player movements or anything? If not cool! Thanks!

-=Edit=-

Ok it didn't, thanks a lot! :)
In response to FIREking
welcome

Was it really necessary to say that?