Using an imagemap on the menu ...

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
E.Bathory
Regular
Posts: 26
Joined: Wed Apr 25, 2012 7:25 am
Projects: Lance of Longinus, Charm Harmony, Aristata, Cage Bakery, 4Leaf
Location: Korea, Republic of.
Contact:

Using an imagemap on the menu ...

#1 Post by E.Bathory »

1.png
This problem has been found...
titleon.png
This is the original...

How to resolve?

Code: Select all

screen main_menu:
    imagemap :
        ground 'sys/title.png'
        hover 'sys/titleon.png'
        hotspot (325, 305, 500, 355) action Start()
        hotspot (325, 355, 500, 395) action ShowMenu('load1')
        hotspot (325, 396, 500, 450) action Quit(confirm=False)

tuna_sushi
Veteran
Posts: 299
Joined: Thu Jul 07, 2011 9:33 am
Projects: BloomingBlossoms
Contact:

Re: Using an imagemap on the menu ...

#2 Post by tuna_sushi »

Try deleting the 'cache' folder in your game folder... It might work...

User avatar
Alex
Lemma-Class Veteran
Posts: 3098
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Using an imagemap on the menu ...

#3 Post by Alex »

That happens 'cause your images are semitransparent. The hotspots are - a square area where parts of all (ground, hover, idle) images are overlaped, so it becomes noticeable. To solve it, you need to edit your images and make them not transparent.

E.Bathory
Regular
Posts: 26
Joined: Wed Apr 25, 2012 7:25 am
Projects: Lance of Longinus, Charm Harmony, Aristata, Cage Bakery, 4Leaf
Location: Korea, Republic of.
Contact:

Re: Using an imagemap on the menu ...

#4 Post by E.Bathory »

tuna_sushi wrote:Can not get this on. ... :!:
Alex wrote:Oh...Thanks! I'll have to modify the picture :o

User avatar
Hijiri
Eileen-Class Veteran
Posts: 1519
Joined: Sun Mar 25, 2012 6:35 pm
Completed: Death Rule:lost code Overdrive Edition, Where the White Doves Rest-Tsumihanseishi
Projects: Death Rule: Killing System
Organization: MESI Games
IRC Nick: Hizi
Tumblr: mesigames
Skype: kurotezuka
itch: hijiri
Location: Los Angeles
Contact:

Re: Using an imagemap on the menu ...

#5 Post by Hijiri »

E.Bathory wrote:Oh...Thanks! I'll have to modify the picture :o
No need to modify it. Just add this bit of code:

Code: Select all

Alpha = False
Image Image
"Perfection goal that always changes. Can pursue, cannot obtain."

E.Bathory
Regular
Posts: 26
Joined: Wed Apr 25, 2012 7:25 am
Projects: Lance of Longinus, Charm Harmony, Aristata, Cage Bakery, 4Leaf
Location: Korea, Republic of.
Contact:

Re: Using an imagemap on the menu ...

#6 Post by E.Bathory »

Hijiri wrote:
E.Bathory wrote:Oh...Thanks! I'll have to modify the picture :o
No need to modify it. Just add this bit of code:

Code: Select all

Alpha = False
Huh ... that way? :shock:

Post Reply

Who is online

Users browsing this forum: No registered users