Language

onReset


onReset()

Description

onReset() is a callback function. This function will be called each time a player resets the map (retry) or when the map starts.


Examples

Play a music

This example shows how to play a music.

  1. function onReset()
  2.     Sound.playMusic("myMusic.ogg", true)
  3. end