Point and Click Tutorial: Chapter 2 - Ordering the Cursors

From SCI Wiki
Revision as of 01:39, 4 January 2011 by Andrew Branscom (talk | contribs) (→‎Our Inventory Item Cursors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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:

Look

Talk

Take

  • Look Cursor - save as 998

 

  • Talk Cursor - save as 996

 

  • Hand Cursor - save as 995

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:

Dollar

Ballon

String

Ballon with String

  • Cash - defined as Item 1 - save as cursor 1

 

  • Balloon - defined as Item 2 - save as cursor 2

 

  • Striiing - defined as Item 3 - save as cursor 3

 

  • StriiingBalloon - defined as Item 4 - save as cursor 4

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 >