Coding assistance please
Posted: Thu Oct 11, 2018 2:21 pm
Hey guys and girls today im here asking some assistance who can help me with my code for some reason I just cant get the imagemap to work ive just added some random text on my images will still change it once I get the coding right in the room I need to go to the livingroom and bed and waredrobe, but when I use the following code it skip the bedroom scene and go straight to the livingroom
so im not really sure whats wrong with above code when I use the following code it does work but everyone say I must use the imagemap code
will there be any coder who can assist me to get the futures to work im not sure what im doing wrong and if someone can help me how do I make a code for a day even so this one im working on is day 1 then there will be day 2 etc I hope I dont ask to much for assistance this is my first game im trying to code.
Code: Select all
label bedroom:
screen menu_bedroom():
if bedroom:
imagemap:
ground "images/bedroom_idle.png"
hover "images/bedroom_hover.png"
hotspot (560,3,1200,550) clicked Jump("livingroom")
hotspot (1150,0,1500,650) clicked Jump("waredrobe")
hotspot (0,0,850,1150) clicked Jump("bed")
show screen menu_bedroom()
Code: Select all
#$result=renpy.imagemap("bedroom_idle.png","bedroom_hover.png",[(560,3,1200,550,"livingroom"),(1150,0,1500,650,"waredrobe"),(0,0,850,1150,"bed")])
Code: Select all
label start:
scene wakeupasleep
et"Elly is fast asleep but need to wake up any moment."
scene wakeup asleep2
et"she really look so peacfull when asleep."
scene wakingup
et"Elly have a really busy day ahead of her."
scene wakingup3
e"Oh what a lovely night rest."
scene wakeup4
e"I should stand up and get ready for the day."
scene standupp
e"Its time to get up and go and get ready for the day."
scene standuppawake
e"this is such a lovely morning."
scene standuppawake walking
e"wow amazing"
scene bedrooom2 with fade
label bedroom:
screen menu_bedroom():
if bedroom:
imagemap:
ground "images/bedroom_idle.png"
hover "images/bedroom_hover.png"
hotspot (560,3,1200,550) clicked Jump("livingroom")
hotspot (1150,0,1500,650) clicked Jump("waredrobe")
hotspot (0,0,850,1150) clicked Jump("bed")
show screen menu_bedroom()
#$result=renpy.imagemap("bedroom_idle.png","bedroom_hover.png",[(560,3,1200,550,"livingroom"),(1150,0,1500,650,"waredrobe"),(0,0,850,1150,"bed")])
#this is the livingroom area where you will be able to choose to go to the shower or kitchen
label livingroom:
scene livingroomcouch2 with fade
e"wow amazing"
"..."
screen menu_kitchen():
if kitchen:
imagemap:
ground "images/kitchen_idle.png"
hover "images/kitchen_hover.png"
hotspot (6,3,600,1078) clicked Jump("kitchen")
hotspot (1381,14,1917,1078) clicked Jump("shower")
show screen menu_bedroom()
#$result=renpy.imagemap("kitchen_idle.png","kitchen_hover.png",[(6,3,600,1078,"kitchen"),(1381,14,1917,1078,"shower")])
label kitchen:
scene kitchen with fade
et"hmmm lets go to the kicthen and make some coffee"
scene coffee with dissolve
et"This coffee machine is the best thing i have invested in."
scene coffee1 with dissolve
et"Its really fast and make my coffee nice and hot just like i want it."
scene coffee2 with dissolve
et"this see thru glass is really amazing if you can keep it clean ofcourse."
scene coffee3 with dissolve
et"And woalla the coffee is done and enjoyable."
scene coffee4 with dissolve
et"this is really the best thing to start the day with."
scene coffee5 with fade
et"every sip is delicious and wish not to end."
scene kitchendone done with dissolve
e"i should head over to the shower to get ready for today."
"..."
jump shower
label shower:
scene shower2 with fade
et"every sip is delicious and wish not to end."
scene shower
et"every sip is delicious and wish not to end."
scene showerdoor
et"every sip is delicious and wish not to end."
scene shower3
et"every sip is delicious and wish not to end."
scene showerundress
et"every sip is delicious and wish not to end."
scene showerundressundresspants
et"every sip is delicious and wish not to end."
scene showerundressundress
et"every sip is delicious and wish not to end."
scene showetbeg
et"every sip is delicious and wish not to end."
scene showetbegzoom
et"every sip is delicious and wish not to end."
scene showetbegzoom2
et"every sip is delicious and wish not to end."
scene showetbegzoom3
et"every sip is delicious and wish not to end."
scene showetbegzoom4
e"The shower was just what i needed to get the day started."
scene showering with fade
et"Heading to the bedroom rapped in a towel."
"..."
jump aftershower
#this is the waredrobe where you can choose what to wear
if result == "waredrobe":
label waredrobe:
menu:
"My corporate outfit.":
jump outfit
"Just something sexy and light.":
jump sexy
label outfit: #this will be a normal corporate outfit
e "Because of the interviews i really need to dress like a boss."
scene closet with fade
"tests"
scene closet7 with fade
"tests"
scene closet654 with fade
"tests"
scene corporatedress2 with fade
"tests"
scene corporatedress22 with fade
"tests"
scene corporatedress with fade
"tests"
scene corporatedresoutfit with fade
"tests"
jump livingroom2
label sexy: #this should be a sexy outfit
e "Im feeling really good and happy and dont want to get dressed to heavily so ill just go with something light and sexy."
scene closet with fade
"tests"
scene closet7 with fade
"tests"
scene closet654 with fade
"tests"
scene dressedsexy with fade
"tests"
scene dressedsexy2 with fade
"tests"
scene corporatedresoutfit2 with fade
"tests"
scene corporatedresoutfit22 with fade
"tests"
jump livingroom2
label aftershower:
et"what will i be wearing today"
scene bathroomtowl
et"what will i be wearing today"
scene bathroomtowl2
et"what will i be wearing today"
scene bathroomtowl3
et"what will i be wearing today"
scene bathroomtowl4
et"what will i be wearing today"
scene bathroomtowl45
et"what will i be wearing today"
jump waredrobe
#this is where you can go to bed
if result == "bed":
scene liveingroom00
e"wow amazing"
scene livingroomcouch2 with fade
e"wow amazing"
"..."
scene wakeup4
"lets go to bed"
"..."
# here you will be going to the shower
# ...after you took a shower you will walk back to the room
# ... the game continues here.
label livingroom2:
scene liveingroom00 with fade