Comments (2)
Or alternatively you can replace the MP3 import code in Flex!
(I’ve been meaning to write a blog post about this forever...)
from flashpunk.
This is a Sfx class that I am using that allows for variable start time in the play function and preserves the start time if you use the loop function as well. There is an additional playAtPosition function that is also a very hacky 2d positional sound function. Everything is fully functional and tested. The playAtPosition function could probably use additional discussion if it is even to be considered.
from flashpunk.
Related Issues (20)
- Sfx volume not changed when type's global volume is set to zero HOT 2
- onActivate/onDeactivate HOT 1
- PreRotation + Flip = Weird
- Is there a reason Input.update is called after update()? HOT 1
- Draw.text() eats up a LOT of memory. HOT 2
- Text Anti-aliasing through options HOT 2
- World's internal linked lists (as well as Entities') should be made public HOT 12
- Console.log() falls when arg is null
- When Tweens are completed, the target value should be exactly the one provided HOT 4
- FP utils functions need optimisation
- Add zoom function to FP.screen
- Entity.removeGraphic and World.removeGraphic?
- Document workaround for Text class that avoids tinted background color
- Worlds: controlling update sequence. HOT 1
- Fix Tween.tween() and autoStart HOT 5
- using 0 in Tilemap.createGrid() sets empty tiles as solid HOT 4
- We need milestones HOT 13
- recyleList() and collideLineInto()
- Behavior of 'color' and 'alpha' parameters in Draw.as functions inconsistent
- Worlds and Entities can have render() called before first update() HOT 5
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 flashpunk.