#(answered)How can make the animation frame speed change based on the main actor velocity?

1 messages · Page 1 of 1 (latest)

prisma dust
#

How can make the animation frame speed change based on the main actor velocity?
Example:

#

How can i do this?(If its possible ofc)
<@&1050648858243379231>

#

I'm sorry if I'm interrupting you. I did'nt mean to

barren sierra
#

Try copying the animation with diferent Speeds, and then make they change with scripts

prisma dust
#

Oh ok

jaunty prawn
# barren sierra Try copying the animation with diferent Speeds, and then make they change with s...

you can also create a custom animation system to make it just like the sonic games, its not really that hard since you really just need a 2D array to extract the textures of each animation from and a Frame Timer that gets reduced by your speed, once its 0 you set a frame value + 1 if its not above the animation length (otherwise set the frame back to 1 to restart the animation) and the image is extracted from the array using an animation id (aka where the images of x animation are stored) and the current frame

prisma dust
#

i gotta try it out

#

thx!

#

(answered)How can make the animation frame speed change based on the main actor velocity?

prisma dust
#

I think i'm loosing neurons

jaunty prawn
#

you need a player var because locals don't support 2D arrays

jaunty prawn
prisma dust
#

So its impossible to do it in multiplayer?

jaunty prawn
#

just get the player controlling self

#

you can also use a public variable