new code for "set_speed"?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mystile1369

Busy converting from 2.13 to 3.02.


It worked before…
I have tried “setspeed” and set_playback_speed. Going to the docs I only found
float playback_speed
and I dunno how to use that.

help plz…?

:bust_in_silhouette: Reply From: kidscancode

I’m assuming you’re talking about an AnimationPlayer node.

The property you saw is listed under “Member Variables”. In 3.0, that means you can access those properties directly rather than use set_/get_ methods. So your code would be

get_tree().get_root().get_node("BCK/Sprite/pl").playback_speed = 3.0

you rock! that fixed it all! Thank you! :slight_smile:

Mystile1369 | 2018-03-27 22:05