A few cursor/GUI usage questions (long)

Started by remixor, Wed 30/04/2003 06:27:30

Previous topic - Next topic

remixor

Hi, I've a few questions about cursor usage.  I'm trying to make a cursor interface which only has two viewable modes: walk and interact.  The walk mode obviously moves the player, and the interact mode does everything else the player would need to do with an object, character, or hotspot.  To achieve this aim what I have done is created two cursor images, one for each mode.  I assigned the walk cursor image to mode 0 and the interact cursor image to mode 2.  I unchecked the "Standard cursor mode" box for all cursors except for mode 0--this way, the player cannot select any other cursors, only the game can.  Now, I'm planning on creating my own custom GUI, since obviously the supplied Sierra one is pointless since I don't have all those cursors.  I'm just getting this cursor stuff out of the way before I do that.  So here is my first question, and this just occurred to me, hopefully not too late (sorry for all that explanation): when I get rid of the default GUI to use my own, will I have to redo all this cursor stuff?  I guess I mean, is the cursor interface part of the GUI?

My next question has to do with the method I'm using for implementing this cursor system.  The only way I could think of doing it is as follows:
Each room has one big hotspot that covers everything except other hotspots.  When the mouse is over this big hotspot, the game changes the cursor to mode 0 (walk).
When the mouse is over another hotspot, the game changes the cursor to mode 2 (interact).  Then, on "Any click on hotspot" in the interaction editor, I just execute whatever I want the player to do with the hotspot.
Do you guys think this is a good method?  Are there any problems you think I will run into in the long run?  Here are the things that bother me about it:
I can't see anything underneath the big room hotspot, so in order to change hotspot areas around, I have to delete the big room hotspot and make it again every time.  This is just an inconvenience however.

This is the big problem though, and is my next question:
How do I get this system to work with objects, not just hotspots?  Maybe I'm not looking in the right place, but I can't figure out how to change the cursor mode when the mouse is over an object.  I hope this can be done, or my system is shot.  I also can't find any way to do this through scripting.  Any ideas?

Also, what is the default GUI 0 for?  It's that thin grey bar that's always near the top of the screen.  Can I safely delete it or it there for some reason?


I think I may have had another question or two.  If I remember it I'll edit this post.


EDIT:  Ok, I remembered my other question.  This is actually pretty crucial to my interface, I don't know why I forgot it.

I want the mode 2 interact cursor to do the interaction on the left click, as described above, and to look on a right click.  Is this possible?  I have played AGS games where the right-click is utilized, so I assume it's doable.  Would the process be different for hotspots and objects?

Thanks for any help!
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

remixor

ignore this post; I just need to check the "Notify of replies" box and I can't do it in an edit.
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

SMF spam blocked by CleanTalk