Simple Myst-Like Application

Jim Ault JimAultWins at yahoo.com
Wed Aug 23 23:19:32 EDT 2006


This should be easy, and you have several options.

Assumption:  the scenes are on different cards

Simplest solution:  Make a new field, name it "userScore",select it, then
click 'Group', which puts the field inside a group that has an ID, but not a
name(yet).  In the inspector palette, give the group the name of
"scoreGroup".  Near the bottom of the inspector, click 'Behave as
background", and near the top click "Share text".

At this point, the "scoreGroup" is only on the one card you are viewing.
Now go to each card you want the field to appear, then choose from the menu
'Place group: scoreGroup'.

Now anything that is put into field "userScore" will appear the same on all
cards.

NOTE:  Is it ok if the user clicks the 'refrigerator' 4 times and gets 40
points?

Jim Ault
Las Vegas


On 8/23/06 7:34 PM, "Graeme Harlick" <pinch_from_spock at hotmail.com> wrote:

> RunRev,
> 
> I am building a simple Myst-like point and click of my own cottage, like a
> virtual tour.  I have made it a game for the family to enjoy, with sound and
> animated gifs to bring the different screens to life.  I am hoping to add a
> point system, as where when one finds a hidden screen/pathway/object (lets
> say the outhouse), then one gets points added to a Field at the bottom of
> the screen.
> 
> How and where would I put the code so that the points don't get lost going
> from screen to screen, and also what code would I use to set variables so
> that users can explore freely and find hidden areas non-sequentially?
> 
> Eg. The user (0 pts) moves up to the cottage click by click and scores 10
> pts by opening the fridge (10 pts).  The click by click moves all the way
> out and down to the first screen (the dock) and clicks on a fishing pole for
> another 10 pts (20 pts) and so on.
> 
> I am a newbie programmer, and hopefully this one is an easy one.
> 
> Thank you,
> 
> Graeme
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list