-
Notifications
You must be signed in to change notification settings - Fork 7
Postcards_Stickers
This page is dedicated to a specific feature requested by a user of LUTE who wised to create a game which centered on collecting 'Stickers' which eventually players would place onto 'Postcards' in creative ways. The idea being that one could create various postcards of their visits that reflect that site which could be shared with others and be used as a keepsake of their visits.
Below is a small outline and guide on how to use this specific mechanic within LUTE.
There are some key classes of the Postcard example scene which can be found in LUTESampleExamples>Scenes>LUTEGames>Stickers>StickerBasics. This includes the main Postcard and Sticker class as well as two manager classes that handle the Postcard UI and systems.
The postcard class is the base for all Postcards. A postcard will have a name, description, a total sticker limit (i.e., how many stickers are allowed to be placed on the sticker where 0 is unlimited), and a creator (or author). There are also several Feedbacks properties which allow you to play sounds or visuals when the player carries out certain actions (such as opening the postcard or submitting a new postcard).

Essentially, a Postcard is a container of the above information which also includes a list of Stickers. When loading into an exisiting Postcard, this information is set automatically into the relevant fields and the stickers are placed based on where their locations were last saved. Stickers can only be placed onto a Postcard canvas and we ensure their positions are clamped using logic contained on the Sticker itself.