playMaker

Author Topic: Multiple like game objects with different bools  (Read 310 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Multiple like game objects with different bools
« on: September 21, 2022, 08:49:55 PM »
Hello,

I have several game objects (for example stars in Super Mario 64), and I want to keep track if they are collected or not. I know I use a bool to do this, but how do I do it so that I don't have to make a bool and a tag for each individual collectible? Thanks!

John Bassi

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Multiple like game objects with different bools
« Reply #1 on: September 22, 2022, 01:12:44 AM »
Hi.
Use arrays or Array List (Ecosystem) or hash tables