Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 9:26 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Apr 28, 2012 7:04 am 
Newbie

Joined: Sun Mar 25, 2012 12:05 am
Posts: 4
I'm using an imagemap for main menu and i'm having trouble with it. because the activate_sound properties isn't working. (I've deleted the '#' and i've changed it with my file name)
Oddly, the button properties which are using the same files are working.


Code:
    ## Sounds that are used when button and imagemaps are clicked.
    style.button.activate_sound = "effects1.wav"
    style.imagemap.activate_sound = "effects1.wav"


This is my code.

Does it the error have something to do with the imagemap?

Sorry for such a n00b question, I'm new here and this is my first post >.<


Last edited by raaxyz on Tue May 01, 2012 4:51 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Sat Apr 28, 2012 11:47 am 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
This should help http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=11940&hilit=imagemap+sound#p156295


Top
 Profile Send private message  
 
PostPosted: Mon Apr 30, 2012 11:54 am 
Newbie

Joined: Sun Mar 25, 2012 12:05 am
Posts: 4
Ah.. Thank you! But it is working when the buttons are hovered. How do I change the code to make the sound playing when the button is clicked?


Top
 Profile Send private message  
 
PostPosted: Mon Apr 30, 2012 12:01 pm 
Veteran
User avatar

Joined: Sat Dec 12, 2009 1:38 pm
Posts: 427
Location: In a jar with piraƱas
Completed: Stormy Night
Projects: The Hurtful Wall
raaxyz wrote:
Ah.. Thank you! But it is working when the buttons are hovered. How do I change the code to make the sound playing when the button is clicked?


I think you can try this code on the options rpy:

Code:
style.hotspot.activate_sound = "click.wav"

_________________
My WIP project:The hurtful wall
:Other VNs:
+The Knife of the Traitor(Nanoreno 2012)
+Eyes of Wilderness
++Currently colaborating with other folks as an artist.

sadfrog developer blog


Top
 Profile Send private message  
 
PostPosted: Mon Apr 30, 2012 1:45 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 981
raaxyz wrote:
Ah.. Thank you! But it is working when the buttons are hovered. How do I change the code to make the sound playing when the button is clicked?

If you are talking about imagemap, then you need to add play command to list of actions for each hotspot
Code:
hotspot (1041, 97, 192, 62) action [ Start(), Play("test_one", "SE11.mp3") ]


Top
 Profile Send private message  
 
PostPosted: Tue May 01, 2012 4:50 am 
Newbie

Joined: Sun Mar 25, 2012 12:05 am
Posts: 4
Thank you guys. It's working now! >w<


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group