Point and Click Tutorial: Chapter 2 - Ordering the Cursors
Chapter 2 - Ordering the Cursors
This chapter deals with getting the essential cursors in order, as well as attempting to illustrate the basics behind the whole item cursor game plan. Really it isn't all that complicated, besides the basic action cursors, the inventory item cursors are going to be saved under the same resource number as they were defined as in game.sh during chapter 1, so Cursor 1 corresponds to item 1.
Our Basic Action Cursors
So really, this almost feels like it is self explanatory, but I'll add a couple of words anyway. To start with let's go ahead and handle the basic action cursors. These are the cursors that allow your character to perform all of the basic actions that we need in the inventory room, hence the title. What might not be so self explanatory though, is the numbering system. So here goes:
|
That pretty much sums up the basic actions for the inventory room. We are going to add in a couple more when we get to making the rest of the game point and click but for now, this is all we need.
Our Inventory Item Cursors
As stated up above, managing the point and click system is going to be much easier if you can keep a few variables straight. Starting with saving your inventory cursors the same as they were defined in games.sh which we handled in the last chapter. So building off of that idea, this is where we're at:
|
All right, so that's what we've got so far, as long as you keep up numbering the cursors the same as the define number adding more items in later shouldn't be to difficult.
That sums up the creation of point and click cursors.
< Previous: Chapter 1 - Preparing the Main Script Next: Chapter 3 - Prepare the Text for our Inventory Room >