Mouse Cursor problems

Started by Willdon, Thu 03/02/2011 16:25:00

Previous topic - Next topic

Willdon

Hello, long time no post.

I have recently attempted to pick back up Adventure Game development, and by following Densming's GREAT Youtube tutorials, I can say I have come A LONG WAYS!  Thanks Densming!

You're a hero! :)

I am however running across some issues with my mouse cursor.

ok, so here is the setup.

I have it so the game uses the following cursors.

Lookat

Talkto

InteractWith

This game is in the style of gabriel Knight 2 and Phantasmagoria 2, so the actual player charactor is invisible, and an object portraying the charactor image is instead placed upon the screen.

the Player Charactor is on the screen however, but using a single blank frame in any one of it's assigned veiws.

So essentially, no "Walkto" cursor is needed.

In addition to the three listed above, I also have the following special cursors:

UP

UPRIGHT

RIGHT

DOWNRIGHT

DOWN

DOWNLEFT

LEFT

and...

LEFTUP

These are to be used when the player hovers the mouse over a hotspot, and indicates they can go in that direction.

To test this feature, I made a test where the player is given the choice to go to the right side of the screen, or up the stairs.

The mouse moves over the hotspot, and the cursor changes to the desired graphic.

This change is by ChangeGraphicMode or something like that.

Then I have the SaveCursorUntilLeaves feature set.

When the mouse leaves area, the graphic stays the same.

(I.E.: It doesn't change back to the desired image for the three regular mouse cursors.)

Any ideas?

THANK YOU! ;D

Akatosh

This might be inaccurate, as I haven't actually used AGS in a long time, but I think it's because the ChangeModeGraphic function is permanent. You'll have to manually reset it, I think. (It's that or moving SaveCursorUntilLeaves to *before* the graphic change.) Again, I could be mistaken, but that should do the trick.

Khris

Here's a method of doing this:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=41759.msg552792#msg552792

You don't need a new cursor for every direction, all you need to do is change the graphic.
In the linked piece of code, you'll probably want to replace "mouse.Mode" with "eModeWalkto".

SMF spam blocked by CleanTalk