What features should we add to Corona?

Support for a variable time per frame in display.newSprite()

As of now, sprites can have sequences where you'd have to specify the 'time' it takes to complete the animation. It would be great to also have the possibility to specify a sequence where the frame time is variable per frame. (eg. frame 1 = 100ms, frame 2-5 = 60ms, frame 6 = 33 ms)

I could imagine the following syntax methods:
1: a new property for the sequenceData called 'variableTime'. It would consists of an array where the time is given per frame: {variableTime = {100, 60, 60, 60, 60, 60, 33}}
2: a new property for the sequenceData called 'nextSequence' which receives the name of the sequence to connect to.
3: a new property for the sequenceData called 'sequences' which is an array of sequenceData itself

1 vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)

We’ll send you updates on this idea

Jochem shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base