Author Topic: Change Speed of PlayThread()  (Read 1173 times)

I am trying to change the speed of an animation initiated by playThread(). In particular, I am trying to make the armAttack thread play slower. I would prefer not to have to edit and re-import the animation (which seems to be the only solution I can find at the moment). I need the animation to play at a variety of speeds, which will ideally be adjustable via the server's preferences.

not possible as far as i know. you'll have to rely on calling playThread(shiftUp) and playthread(shiftDown) at specific intervals

depending on what you need it for, you could potentially change the server timescale for when the animation plays
would work for a cutscene, but wouldn't recommend it for a weapon animation in a TDM..

This may only work on weapons that have their animations built into their DTS, but maybe try increasing the value of the stateTimeoutValue in the weapon image's state that calls the playThread command

This may only work on weapons that have their animations built into their DTS, but maybe try increasing the value of the stateTimeoutValue in the weapon image's state that calls the playThread command
this works. this will not affect playthread anims on the player though.

in item states the animation is forced to take as long as the state it is in.

I wish you could change animation speeds on player animations

not possible as far as i know. you'll have to rely on calling playThread(shiftUp) and playthread(shiftDown) at specific intervals
This sounds a bit hacky, but it may be my only option. Do you have some example code I could see?

This may only work on weapons that have their animations built into their DTS, but maybe try increasing the value of the stateTimeoutValue in the weapon image's state that calls the playThread command
This is ot the case with my tool. I am just using the standard brickweapon.dts. As far as I know, there are no animations built into this DTS. Correct me if I'm wrong.

depending on what you need it for, you could potentially change the server timescale for when the animation plays
would work for a cutscene, but wouldn't recommend it for a weapon animation in a TDM..
This would not work. This item is intended for use in DMs, TDMs, etc.

I wish you could change animation speeds on player animations
It's a bit strange that you can't, honestly.

This sounds a bit hacky, but it may be my only option. Do you have some example code I could see?
just schedule playing those threads about 100 ms apart, or shorter if it needs to be faster

just schedule playing those threads about 100 ms apart, or shorter if it needs to be faster
Alright. I'll play around with it.

It's a bit strange that you can't, honestly.
not really since you can't do basically anything in blockland

not really since you can't do basically anything in blockland
blockland the game where you can do anything provided you know how to work around the somewhat arbitrary engine limitations