How to get tooltips to pop up on certain levels, but not all of them

Hey all, building my first game, and loving the process!

So, what I’m on right now is getting tips to work, like one on the first level that says “use arrow keys to move”, next level that says “space to jump” etc. I want these to pop up on a few levels, but obviously not all of them.

I’ve got the tooltip text box in my canvas already. It’s there, and ready for text.

I’m just not sure the best or most efficient way to go about making it display tips for some levels but not others.

I’m using C# (which I am also learning from scratch, sheesh!), if that helps.

Thanks in advance, and happy to answer any questions you may have! :slight_smile:

Two approaches are possible.
Assuming you store the current level name/information somewhere.

Code driven: Have a script/function that keep track of these tooltips for a given level.

Data driven: Store these tooltip information in a public variable list on an object that is not deleted between scene loading.

Start with something simple that works and make it evolve over time; don’t be afraid to refactor as you go.

Turns out this was an easy one, and I’m an idiot. I didn’t have the script attached in any scenes except Demo Level, so it never ran on any other scenes. Once I attached it, it ran great!

Thank you SO MUCH for your help. You definitely got my gears turning.