Comments (4)
Has anyone made a start on this or thought about it any more? I'd like to help add this feature.
from flambe.
That would be a big help, Mike! I haven't started it, but I was thinking it should look something like:
- A
labelPassed :Signal<String>
on MovieSprite that gets emitted during an update when a label is crossed. Useful for letting artists insert "points of interest" that the coder can hook up to do different things (like playing sound effects in sync with the movie) - A
findLabel(name :String) :Float
on MovieSymbol, for looking up the time position of a label, or -1 if it doesn't exist. - A way to enumerate all the labels on MovieSymbol?
from flambe.
Ok, that sounds good to me. I'll have a crack at it!
Could I change the frame index to an Int? Hmm, I guess it's needed somewhere for frame interpolation when playing at different rates though...
Perhaps when fetching a position based on a frame-label you should only be given the frame index as an Int - labels will always be on whole-frames I suppose. It could then use a Map<String,Int> for labels and frame indices to make lookups pretty straightforward after the map is populated. That would also make finding when a frame label is passed pretty straightforward.
Since Flump uses named layers for movies, I though we could specify to use a layer named 'labels', specifically for frame-labels. I checked that Flump exports empty layers that have labels on keyframes, it does and Flame parses them fine. But I'm not sure if that's a particular waste of resources internally for Flambe to have movie layers with no symbols, or if they are just ignored as far as display is concerned.
from flambe.
Made a start...
It works for me on a minimal test with a few animations and frame labels, but it definitely needs a bit more testing :)
from flambe.
Related Issues (20)
- Low Quality on Chrome - Android HOT 1
- @:componentBase to extended components HOT 3
- Cache problem / Type name Math is redefined from module Math HOT 1
- Haxe 3.2 has been released. Current haxelib code is broken.
- html5 color / masking bug HOT 1
- template project wont build html HOT 2
- Windows 10 - Development server not found HOT 1
- AnimatedFloat.watch() doesn't work as expected
- Asset reloading incorrect after refresh in browser
- Stage3DTextureRoot.readPixels wrong ARGB to RGBA conversion
- Android build fails with debug flag
- Scroll listener not working under chrome due to a browser bug HOT 2
- Signal priority HOT 3
- Has progress stopped? Should we migrate to another framework? HOT 26
- I found an issue with bitmap fonts and Font.hx
- Not Building HOT 1
- Screen not drawing while loading asset pack in android
- A black rectangle in HTML5 & Chrome HOT 2
- Playback.dispose() Does Not Stop Playback in Cocoon for iOS
- Is this dead ? or Alive ? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flambe.