Hi everybody. First, thanks a lot for this wonderful software
I have a problem with the imagemap. In fact, i don't understand how find the points coordinates and in which order we must enter them.
Help ><
I searched in the forum but i didnt find.
PS : Sorry if my english isn't correct, i'm french ><
Problem with the imagemap
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.
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.
-
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: Problem with the imagemap
First open the image using MS Paint (or any other similar software) then find the position of X1,Y1 and X2,Y2 by placing the cursor at the top left corner(X1,Y1) and bottom right corner(X2,Y2) of the button(as shown in the image, with the cursor represented by the red arrows)
Then place the X1,Y1,X2,Y2 into the four numbers(eg.([X1], [Y1], [X2] ,[Y2], "Start Game")
Then place the X1,Y1,X2,Y2 into the four numbers(eg.([X1], [Y1], [X2] ,[Y2], "Start Game"),
Then place the X1,Y1,X2,Y2 into the four numbers(eg.([X1], [Y1], [X2] ,[Y2], "Start Game")
One way to find coordinates is to use MS Paint and place the cursor(represented by the black arrow in this example) on a point of the image. The coordinates will be shown in the lower right corner of the window(red circle)Zearth wrote:In fact, i don't understand how find the points coordinates and in which order we must enter them.
The manual is here:http://www.renpy.org/wiki/renpy/doc/ref ... y.imagemaprenpy manual wrote:hotspots - A list of tuples defining the hotspots in this image map. Each tuple has the format (x0, y0, x1, y1, result). (x0, y0) gives the coordinates of the upper-left corner of the hotspot, (x1, y1) gives the lower-right corner, and result gives the value returned from this function if the mouse is clicked in the hotspot.
Then place the X1,Y1,X2,Y2 into the four numbers(eg.([X1], [Y1], [X2] ,[Y2], "Start Game"),
Last edited by JQuartz on Mon Jul 13, 2009 9:06 pm, edited 3 times in total.
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Re: Problem with the imagemap
Thank you i'll try it ><
Who is online
Users browsing this forum: No registered users