Converting speed scale to FPS

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

I have a animated sprite that is in a dark area and I want to sync its animation with the same animation on a light2D to make it more visible, but the sprite uses speed scale and the light2D uses FPS, is there any way to convert speed scale to FPS?

This involves the use of the _process() function (and the corresponding delta parameter). But I can’t determine which one to use. Maybe, instead, the sprite could be programmed to use the idle_frame signal in its animation?

Ertain | 2021-09-30 06:30

I’m a new developer and have no clue what an idle frame is, I just wanted to know the base speed scale (that is multiplied by the value you put in speed_scale) in FPS.

BrickBreaker | 2021-09-30 13:46

:bust_in_silhouette: Reply From: yrtv

If you want animation to interact with light, “animate” with shader.

Book of shaders if you don’t know anything about shaders.
Library of Godot ready shaders
Library of WebGL shaders for inspiration
Free shader editor with Godot plugin