Remember me
You are here: HomeForumCyberix3D ForumJob OfferingsAdvances of my game
Welcome, Guest
Username: Password: Remember me

TOPIC: SOUND PLAYS ONLY ON CERTAIN LEVEL

SOUND PLAYS ONLY ON CERTAIN LEVEL 3 years 10 months ago #2673

How do I set a sound on a level so that it only plays on that particular level, I placed the load sound and play sound inside the level but it still plays when I change the level
The administrator has disabled public write access.

SOUND PLAYS ONLY ON CERTAIN LEVEL 3 years 10 months ago #2676

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
Hello,
The Load Sound and Play Sound are not affected by the current level.
You can just stop the sound by using Play Sound with volume 0 when you switch to the next level and then Play the other level sound.
You should put the Play Sound commands inside a Timeout because the Play Sound command could be canceled when switching a level.
Here is an example (You can view the source):
www.gamemaker3d.com/player?pid=01658166
Regards,
Cyberix3D team
The administrator has disabled public write access.
Time to create page: 0.071 seconds