Page 2 of 2

Re: Imagemaps explained by a dummy

Posted: Mon Jul 16, 2018 2:13 am
by Andredron
but does the

Code: Select all

focus_mask True
does not work?

Not sure if I'm supposed to post this here, but...

Posted: Wed Sep 16, 2020 4:59 pm
by Jovid Jomith
Hi there!

I saw your tutorial on imagemaps for the main menu of the game, and I thought it was great! I managed to create my imagemap relatively well, but the thing is, I'd like to incorporate it as a small mini-game in the middle of my VN, rather than at the title page.

My VN is a murder mysery game, and I'd like to have some point and click mini-games.
For example... making the player find an inconsistency in a photo. They would have to find the visual disrepancy in question and click on it with their mouse. I'd like to code it so that if you click anywhere else on the screen, you'd lose health (I have the healthbar working fine, I just can't seem to get this working). Once you click on the proper object, then the game would jump to another label.


(I'm going to attempt to show you what I have currently, but forgive me if I mess up inputting the code into this chat, I'm a little new with this!)
/code

label trialtest:
window hide
screen image1:
imagemap:
idle "Evidence/Case 2/idle1.png"
hover "Evidence/Case 2/hover1.png"
ground "Evidence/Case 2/ground1.png"
hotspot (645, 421, 50, 50) action Jump("testing")
hotspot (0, 0, 720, 1280) action Jump("testfail")




label testfail:
hide screen health
$ maki_hp -= 1
show screen health(maki_hp)
play sound "wack.wav" noloop
show ground1 with vpunch
"{color=#0066ffff}(N-no, that can't be right... There's nothing there.){/color}"
jump trialtest

label testing:
mh "The test works."

code/

This is what I have so far.

Contrary to what the character says under the label "testing", it does not work. The game simply ignores the 'mini-game' I wanted to set up. It shows the images properly, but then jumps straight to "testfail" without allowing me to click on anything.

If you have any idea on how I can go about this, please let me know. I'd really appreciate it!

Thank you,
Jovid