This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

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?

Godot version 3.3.2
in Engine by (25 points)

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?

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.

1 Answer

0 votes

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

by (887 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.