Hello there!
I'm planning on making a "sticker book" for collectibles.
These are "greyed" out as default and when reaching certain goals, these will show on screen as a reward and then visible in the sticker book.
At first I thought that the Inventory could be used for this - but now the Journal system came to my mind, since that is literally pages (I want to make it as it's a book)
What would be the best way to approach this - I also want to show a pop up first when the player gets the collectible first with some cool celebration effects.
And then it's visible in the book - is there a way, if using the inventory for this, to make the inventory icon (In this case it will be a book) animate, sparkle etc so that the player can see a new thing has been added?
Any direction would be much appreciated !
Cheers,
Comments
Inventory items can be animated only very simply by using the Object: Highlight Action, which allows you to have an item flash it's Highlight texture as defined in the Inventory Manager.
For something more complex, you can use custom scripting to animate the UI manually. You will first have to ensure that your Inventory is drawn using Unity UI rather than Adventure Creator's own menu rendering system, as this allows you to add e.g. Animator components to them. Converting your inventory menu to Unity UI is covered in this tutorial.
However, the easiest approach would be to separate your book icon from the rest of your inventory - e.g. just have it as a Button in your Menu, rather than listed in your Inventory Manager as an item.
You can still have AC open up your Journal when clicked on, and you'd then be able to use the Object: Animate Action to trigger any Animator component attached to it directly, since it'd always be the same one each time - the complication with animating an inventory item is that you'll have to go through each slot in your InventoryBox element to see which one is actually holding the relevant item.