Sirdheenz wrote: ↑Mon Feb 12, 2018 12:38 am
mitoky wrote: ↑Mon Feb 12, 2018 12:25 am
Sirdheenz wrote: ↑Mon Feb 12, 2018 12:03 am
hey i am new starter 1 month in renpy, i have a question about imagemap. .
screen blabla:
imagemap auto ("blabla _% .png") xpos 0 ypos 0 focus_mask True action Return ("blablabla")
something like that, but the problem was just a click and not a "show".
this is the problem that I experienced and make my head smoky, because when I install 2 imagemap in the background first click may succeed but when in the click again imagemap is missing and does not appear .
code (show screen blablabla call screen blablabla) like this code that I use to call the imagemap in star label. my question "how to keep imagemap can still exist / appear even though I go in one scene and still can click" example I make 2 imagemap
screen blabla:
imagemap auto ( "blabla _%. png") xpos 100 ypos 100 focus_mask True action Return ("blabla")
screen alala:
imagemap auto ("alala _%. png) xpos 50 ypos 50 focus_mask True action Return (" alala ")
label start:
scene blck
show screen blabla
call screen blabla
show screen alala
call screen alala
$ result = _return
if _return = "blabla"
blck scene (I want this in direct hit jump to "blck scene")
$ result = _return
if _return = "alala"
scene blck
here code that i use ..
and when i click blabla / alala it managed to move me to blck screen, but here the problem is after blabla / alala brings me to blck scene when cursor leads to blabla / alala they die.
unlike before its when the cursor approaches they light up and this is off when you want to click the second time, can I repeat it stay there even though I repeatedly clicked on them and they stay on and respond ???
sorry i question is somewhat understood from the language .. i'm bad about english .. please understand me i need your help
Its a bit hard for me to understand what your problem is.
The best thing would be if you post your code with the code format on lemmasoft. Like this without the stars: [*code] YOUR CODE HERE [*/code]
Afterwards explain:
1.) what happens with that code and
2.) what you want to actually happen instead
If you cant speak english good, thats no problem (: Try to explain in short points, it may helpt a bit!
Also, if you have more than one problem with your code, list each problem one after another.
sorry sir .. i dont know .
It's okay to not understand things. I think we're all a little bit confused.
What is your native language? Knowing the language you speak could help us communicate.
Code can be added to forum posts with the "</>" button. The button is above the text box. It should give you this:
Here is what I think your code looks like.
Code: Select all
screen blabla:
imagemap auto ( "blabla _%. png") xpos 100 ypos 100 focus_mask True action Return ("blabla")
screen alala:
imagemap auto ("alala _%. png) xpos 50 ypos 50 focus_mask True action Return (" alala ")
label start:
scene blck
show screen blabla
call screen blabla
show screen alala
call screen alala
$ result = _return
if _return = "blabla"
blck scene #(I want this in direct hit jump to "blck scene")
$ result = _return
if _return = "alala"
scene blck
$ result = _return
The line "blck scene" does not mean anything in Ren'Py. It tells Ren'Py to look for a "blck" named "scene". It doesn't know what a "blck" is, so it will create an error. You can replace "blck scene" with "scene blck" or "jump blck scene". These instructions will produce different results.
The line "scene black" will tell Ren'Py to look for a "scene" called "blck". Scenes are the backgrounds. (Think of it as "scenery".)
The line "jump blck scene" will make Ren'Py look for a label named "blck scene." If it finds this label, it will start reading the information in that label. You can look in the sample game "The Question" to see how this works. This game came with Ren'Py. It's located below the tutorial.
I do not understand the questions you are asking. Please do not be discouraged. We would love to help you.
I could guess what you are asking, but that may not help.
"How to keep imagemap can still exist / appear even though I go in one scene and still can click" could be "How do I keep the imagemap visible even after I go into a scene and can click on other things?"
"after blabla / alala brings me to blck scene when cursor leads to blabla / alala they die.
unlike before its when the cursor approaches they light up and this is off when you want to click the second time, can I repeat it stay there even though I repeatedly clicked on them and they stay on and respond ??? " is less clear. "After blablabla or alala bring me to the blck screen, when the cursor goes over blablabla or alalala the screens disappear. Before, when the cursor goes over the buttons, they light up. When you go to click the second time, they do not light up. Can they still light up when my cursor is over them after I select a button?" The last sentence is my biggest guess. I have no idea what your question means.
What are blablabla and alala supposed to do within the game? Are the screens maps, with the buttons being locations? Are the screens part of a heads up display? Is it something else?