Weird Hotspot error?

Started by Jimbob, Sun 26/05/2013 02:02:28

Previous topic - Next topic

Jimbob

Hopefully this is a simple question and I'm being a bit silly... but I can't find any particular reason for it...



See this picture, a hotspot area has been highlighted in blue.
It seems a bit odd that it is fractured and not continuous, but it's my lazy way of coding a simple chess move and attaching dialogue to it.
Unfortunately the upper square seems to work fine as a hotspot, with all the expected responses, but the lower square does not respond at all to anything.

The weirdest thing is that the two squares just next to them (where the bishop and rook are stood, above and below the horizontal band) are blocked in the exact same fashion and yet both squares work perfectly fine (i.e. they give the same expected response).

Please explain this to me, this game has taken much longer than it ought to have... (and if you do help, I will have something playable all the way through by the end of the bank holiday, and if you're really nice, I'll let you play it too!) :)
Current Project: A Hard Day's Knight

Khris

Do you mean it doesn't respond to clicking it?
Could it be covered by something, like a GUI?

It is still one area to AGS, so the issue must be purely "graphical", as opposed to "technical".

I'd connect the two areas, try to figure out the y coordinate at which the hotspot no longer reacts, then look for something at that position.
You could also check if GetLocationType() returns a hotspot at the lower position or something else.

Jimbob

Thanks Khris!

It was a GUI that was there from the beginning of the game (displaying credits and then used for nothing thereafter...) and never actually made to disappear.  It just happened to be the right size to just cover the bottom square of the board...

Onward and upward!
Current Project: A Hard Day's Knight

SMF spam blocked by CleanTalk