Skip to content

Add Frame option to Timer node #10879

@CoreTaxxe

Description

@CoreTaxxe

For anyone interested ue features a very similar option and so so das unity.

Describe the project you are working on

Creating a doomlike, retro-styled or fighting game where frame accuracy is crucial. (For example for combos, invincibilities) where time-based timers are not sufficient or can't guarantee frame-accurate timings. A lot of new comers starting to program re-create games/programs they know. Providing them with the tools they expect seems the best way to get them started.

I am aware that you typically don't want to use frames anymore. But in some rare occurrences you might and given this feature is opt-in/optional users who want to use it can. (Especially since they could also just go through the tiny but tedious process of writing it themselves anyways)

First draft implementation:
#97725

Describe the problem or limitation you are having in your project

QOL Feature to ease the use of frame timers. Otherwise, users have to create custom nodes or re-implement frame counters every single time over again.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Frame timers, different from time based timers, are directly bound to either physics or process frame rate thus guaranteeing deterministic and accurate results even through frame lags.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add an opion to the timer node that allows to chose between Frame and Time mode. In frame mode frames are counted instead of seconds.

If this enhancement will not be used often, can it be worked around with a few lines of script?

Yes.

Is there a reason why this should be core and not an add-on in the asset library?

Its a very simple to implement, has pretty much 0 need for maintenance and is too simple too be worth an addon.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions