Full Changelog: 1.1.1...1.2.0
Major Update
pixelDensity(1)must be used in thesetup()function on high DPI screens. This will be fixed later.
SPRITE CHANGES
- NAME: a variable storing the name of the sprite. The default name is now the folder name.
- The constructor without parameters will automatically search for a folder with the same name.
start()can now be safely called anywhere.ifOnEdgeBounce: bug fix where modifying the hitbox wasn’t applied in this function.touch(color): bug fix where modifying the hitbox wasn’t applied in this function.showHitbox: added an optional parameter for choosing a color.touch(ArrayList):thisis now optional. You can also specify the name of the clone you want to detect.
STAGE CHANGES
drawClonewill now safely stop the clone’s thread whendeleteThisClone()is called.- Added:
sortClones(): can sort clones by a specific int or float parameter. For example: y coordinate.- Image import now has better extension verification.
- A garbage collector call will be added soon when a new stage is called.
- Fixed "outOfRange" issue with backdrops.
SOUND CHANGES
openMicrophone(): must be called in setup() before usingloudness(), it will not start automatically.- Fixed bugs with
loudnessandvolume.
ADDITIONS:
playsoundnoOverlap(): added a function for playing sound insidedrawthat cannot overlap and won’t block the main thread.getDuration(): returns the duration of a sound file in seconds.getActualTime(): returns the actual time in seconds that a sound has been playing.isPlaying(): returns a boolean indicating if the sound is currently playing.