Skip to main content

Search

Collectibles

  • TAPgiles
    Great answers

    Ah, so you'll want to save the fact that collectible A was collected, and collectable B wasn't. To save information between play sessions or between scenes, you'll need to use "persistent" variables.

    You can learn everything about variables here: https://www.youtube.com/playlist?list=PLX3qX-yI9vm4Dgo5NpTd0HcHYhnCJXNQA The first 2 will give you the basics and teach you about persistence.

    You could use 1 variable per collectible, but you can only have 128 "persistent" variables per dream. So it's usually a good idea to use more advanced logic to save more of the collectibles into a variable at once. "Using the 25-bit chip" will get you to how to use a piece of logic I made specifically designed for getting a persistent variable to work for many collectibles at once. And the other "advanced partial variables" teach you how that method works.

  • SamSamThe4th

    Ok. How exactly would I program a coin to persist in dream once it’s collected? Would I have it connected to the destroyer somehow?

  • TAPgiles
    Great answers

    Yep! When the scene starts, you check what the persistent variable says. If it says it's been collected, destroy the thing that was already collected.

    That 25-bit chip video shows you how.

  • SamSamThe4th

    Cool. Thanks, man!

Please sign in to leave a comment.