[Solved] Limiting counter

Greetings, friends,

First-timer video game programmer here (at 47… late bloomer) and I have a question that I can’t seem to find an answer for.

The game I’m designing is a rescue game where you have to pick up people and take them to a safe spot. I’m using a score counter for the number of people aboard the vessel. Trouble is, I can’t seem to find out out to limit the counter for the people rescued (I want the vessel used to hold X amount of people at a time).

Any assistance would be much appreciated. I’ve tried a few options, but none seem to be working.

Thank you

Welcome to the forum.

Execute the pickup action only if the score counter variable is less than X.

1 Like

That did it! Much obliged, friend!

1 Like