Right click won't change cursor mode, and other problem (SOLVED)

Started by police brutality, Fri 05/01/2007 16:26:50

Previous topic - Next topic

police brutality

I haven't done anything complicated, only this small cutscene, apart from that, I've got 1 room with 1 hotspot. Nothing else.

PlayAmbientSound(1, 1, 255, 0, 0);
StopAmbientSound(1); 
int trans = gBlackscreen.Transparency;
while (trans < 100) {
  trans++;
  gBlackscreen.Transparency = trans;
  Wait(1);
}
DisplayMessage(1);

Still,

a)The cursor won't change modes, unless I click the apropiate button in the buttons bar. However, I'm not keeping this bar on the final game, so I want to be able to change the modes just with a right click.

b)The hotspot is not working at all. I've set it to display some cheesy message when interacted with, and ultimately with any click, but the message doesn't show up. I installed the OverHot module, so the hotspot's name is supposed to appear next to the cursor, and apparently the latter won't even "notice" any hotspot in any room.

Khris

a) Please post your entire on_mouse_click function from the global script.
There's supposed to be a part looking something like this:
Code: ags
  else if (button==eMouseRight) mouse.SelectNextMode();


b) Make sure that you've actually drawn a hotspot, not e.g. a walkbehind or a region.

police brutality

Found the problem, it seems a screen sized GUI was shielding the hotspots from my cursors. Feel free to delete.

Ashen

Good to see you sorted this out. We won't delete the thread - it may come in handy for some one else with the same problem some day.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk