Sound control

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Smourt
Posts: 170
Joined: Wed Aug 05, 2009 11:15 am

Hey All
Sound can be switched on by buttons...
Sound can be switched on via sound editor in terms of directional etc.

BUT...

Can sound be controlled by both simultaneously
So, I want to sound files to play in the directional format, but I dont want them to switch on EVERY time the viewet goes to that scene.

So what I would like to do is have a button to contol the sound, so the tour starts at "OFF" then when the viewer click on sound button, the directional sounds will start functioning.

POSSIBLE?

Regards,

Stephan
User avatar
Hopki
Gnome
Posts: 13036
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Stephen
Yes, possible, Bit of a long one this but worth it,

Enter sound editor

Add sound using the top open button.
In the ID: type in a name, e.g. sound 1
Set the Mode, Directional etc.
Set sound loop to -1 this is an off position.

Click OK and exit sound editor


Enter skin editor

Add two buttons and stack them one on top of the other, give then ID’s of sound on and sound off, one will start the sounds and the other will stop them, :roll:
Remember the lower in the skin editors file tree the more forward the element will be in the skin.
So the lower button will start the sounds, this need to be visible the off button need to be hidden.

Add action to the sound on button:

Mouse Click, Hide Element, $self
Mouse Click Show Element, sound off
Mouse Click, Play Sound, Loop, 1, Target: sound 1 (the name we gave our sound in the sound editor, this will not appear in the drop down menu)

Add action to sound off button:

Mouse Click, Hide Element, $self
Mouse Click Show Element, sound on
Mouse Click, Stop Sound, Target: sound 1 (the name we gave our sound in the sound editor)

Regards
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Smourt
Posts: 170
Joined: Wed Aug 05, 2009 11:15 am

Thanks for this Martin.

Looking at it right now!!!
Post Reply