Skip to content

PScratch 1.2.0 for processing 4

Latest

Choose a tag to compare

@R2mix R2mix released this 19 Sep 10:39
· 15 commits to main since this release
5da2c19

Full Changelog: 1.1.1...1.2.0

Major Update

  • pixelDensity(1) must be used in the setup() 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): this is now optional. You can also specify the name of the clone you want to detect.

STAGE CHANGES

  • drawClone will now safely stop the clone’s thread when deleteThisClone() 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 using loudness(), it will not start automatically.
  • Fixed bugs with loudness and volume.

ADDITIONS:

  • playsoundnoOverlap(): added a function for playing sound inside draw that 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.