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 Sun May 19, 2013 10:27 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  [ 5 posts ] 
Author Message
PostPosted: Thu Mar 08, 2012 11:43 pm 
Newbie

Joined: Thu Mar 08, 2012 12:01 pm
Posts: 7
Location: Somewhere around here...lemme look...
Projects: Helga's Cheese Festival
Hello all, new game creator here with just a few questions about my main menu. I've been pretty good about finding my solutions through Google and searching the forums but I guess I haven't been wording my problem correctly because I haven't been able to find the solution...so here it goes.

The first, and biggest, problem is that my main menu is an animated imagemap that for some unknown (and very annoying reason) won't fade out into the game when I hit start. It dissolves into the other menus, like load, preferences, the gallery...but when I start the game there's no transition at all and I can't figure out why.

Here's the code...in case someone asks...

Code:
screen main_menu:
    tag menu

    imagemap:
        ground 'slideshow'
        hover 'button.jpg'
       
        hotspot (349, 245, 105, 43) action Start()
        hotspot (355, 293, 91, 39) action ShowMenu('load')
        hotspot (287, 340, 231, 36) action ShowMenu('preferences')
        hotspot (325, 385, 152, 38) action ShowMenu("gallery")
        hotspot (359, 430, 87, 40) action Quit(confirm=False)


Adding the layout.imagemap_main_menu helped for in game menus but once again...fading in to start the game did nothing... Does the transition go somewhere I'm not aware of?

My other...less important question is that no sounds are working when the hotspots are clicked on the imagemap... Why is this? Because it works for the other buttons in the other menus...granted these aren't imagemaps but still...

Okay, thank you...and PLEASE HELP!


Top
 Profile Send private message  
 
PostPosted: Thu Mar 08, 2012 11:53 pm 
Miko-Class Veteran

Joined: Mon Nov 01, 2010 9:10 pm
Posts: 832
Code:
start:
    scene whateveritisyouwantdissolved
    with dissolve

That's the only way I know how to do it, and yes you must put "with dissolve" below "scene" to make it work. (Has done this with all his other games)

_________________
I have moved to a new account. Please contact me here from now on. T/Y~


Top
 Profile Send private message  
 
PostPosted: Fri Mar 09, 2012 12:18 am 
Newbie

Joined: Thu Mar 08, 2012 12:01 pm
Posts: 7
Location: Somewhere around here...lemme look...
Projects: Helga's Cheese Festival
Ah! Yes, that's it... I know exactly what I did wrong now. Hah! It had nothing to do with the imagemaps at all... But when I put in my splashscreen it didn't have an entering transition. Why are the things the give you the most trouble always so easy to solve??? Thank you so much...

Now for that button sounds....


Top
 Profile Send private message  
 
PostPosted: Mon Mar 26, 2012 6:43 am 
Newbie

Joined: Mon Aug 15, 2011 1:06 pm
Posts: 18
Hi, I'm sorry, that I'm not here to help you. I was just searching for solutions of my own problems and found interesting that animated imagemap. Will you please tell me, where can I found more informations about that?


Top
 Profile Send private message  
 
PostPosted: Mon Mar 26, 2012 5:26 pm 
Newbie

Joined: Thu Mar 08, 2012 12:01 pm
Posts: 7
Location: Somewhere around here...lemme look...
Projects: Helga's Cheese Festival
Sure, actually an animated imagemap isn't all that hard...It sounds like it would be but it's not~

This is the code I used. My animation is just blinking lights but I think it really brings so much more to the menu...You can of course make it more advanced but adding images different transitions and things, and by changing the time a picture is seen. :D

Code:
image slideshow:
    "menu.jpg" with dissolve
    pause 2.0
    "menu2.jpg" with dissolve
    pause 2.0
    repeat


Then just use "slideshow" or whatever you call the animation in place of the image you originally used for your map...

Code:
    imagemap:
        ground 'slideshow'
        hover 'button.jpg'
       


I used mine for the main menu (obviously) and everything works pefectly!

Goooood luck!


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: inohatake14


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