Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Pick up an object that plays a sound once when picked up

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
lzilberm
Member
Member
Posts: 31
Joined: January 19th, 2012, 12:54 pm
Name: lee
IRC Username: zilber

Pick up an object that plays a sound once when picked up

Post by lzilberm »

Hey everyone,

It would be great if someone could help! :-D
The title basically says it all....I want to have objects in my game, that when picked up, they make a 'ding!' sound and then disappear, similar to when players collect coins in video-games.
The help would be much appreciated and thanks in advance!

~~lzilberm
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Pick up an object that plays a sound once when picked up

Post by kddekadenz »

You are using FPS mode?
Then place a mapmodel and set the trigger type to 12. This will make it disappear, when activated.
Save your map and write into the .cfg (located in packages/base/fps)

Code: Select all

 beep = (registersound "chaze/select" 255)
level_trigger_1 = [sound $beep]
Open your map and set the trigger of the mapmodel to 1.

You're done ;)
Kelgar is an advanced RPG beeing developed in Sandbox
lzilberm
Member
Member
Posts: 31
Joined: January 19th, 2012, 12:54 pm
Name: lee
IRC Username: zilber

Re: Pick up an object that plays a sound once when picked up

Post by lzilberm »

Thanks you soooo much kdd!!! It worked like a charm!
Locked