Invisible Cursor (SOLVED)

Started by Mandle, Wed 20/11/2013 10:17:42

Previous topic - Next topic

Mandle

Having a rather frustrating problem here and was hoping somebody could help:

I'm making a game which does not require any inventory or regular GUIs etc. so I chose "Blank Game" when I first made the game.

Everything is working fine so far except for one thing:

I cannot find a way to make the mouse cursor appear on the game screen. The mouse interacts with hotspots just fine (when I can guess where it is (laugh) ). The only problem is that it's invisible.

I am using an imported sprite for the cursor. It's a png image 14x17 pixels.

I've tried:

Code: ags
function game_start() 
{
  mouse.UseModeGraphic(eModeInteract);
  mouse.Visible = true;
}


But it does nothing.

I have the player character's location set off the screen, but I tried it with the player character visible on the screen and still no cursor visible.

I've been through the manual and searched for similar problems in these forums but to no avail.

I'm sure I'm missing something simple but I can't figure out what it is.

Anyone know?

Crimson Wizard

Are you sure you set image for "Interact" mode? Every cursor mode have its own picture.

Mandle

Quote from: Crimson Wizard on Wed 20/11/2013 10:21:15
Are you sure you set image for "Interact" mode? Every cursor mode have its own picture.

Yes, actually I have the same image set for every cursor mode.

selmiak

Code: AGS

function game_start()
{
 mouse.EnableMode(eModeInteract);
 Mouse.Mode = eModeInteract;
 mouse.Visible = true;
}


maybe this works

Mandle

Quote from: selmiak on Wed 20/11/2013 14:26:16
Code: AGS

function game_start()
{
 mouse.EnableMode(eModeInteract);
 Mouse.Mode = eModeInteract;
 mouse.Visible = true;
}


maybe this works

Hehehe :-[

It was much simpler than that actually...

It seems I was trying to use the sprite in slot 0 for my cursor, thinking it was slot 1... :-[

Everything is working fine now...I will just slink away and hope a big hole in the ground swallows me up...

(laugh)

SMF spam blocked by CleanTalk