Skip to content
This repository was archived by the owner on Sep 5, 2026. It is now read-only.

Quick example how to use and trigger sounds

Ercan Akyürek edited this page Feb 24, 2015 · 1 revision

Quick example how to use and trigger sounds

    import com.nolimitsframework.sound.*;
    import com.nolimitsframework.trigger.*;
    ...
    Sound halloSound = new Sound("Hallo.ogg");
    TriggerManager.addTrigger("Coaster, playHallo", halloSound, "play");

Attaching to a scenery object

    import com.nolimitsframework.constraints.*;
    ...
    halloSound.attachConstraint(new AttachTo(new SceneryObject("Cube")));

Clone this wiki locally