Creating a Second Bool for Cheat Keys

Just wondering the reason behind creating a second variable for using cheat keys. We already have the bool isTransitioning, why not just use that to turn off collision?

Hi Jeffrey,

Welcome back to our community! :slight_smile:

We don’t want to mix concepts, and, which is even more important, we do not want to affect our normal game mechanics just to test something. Also we want to be able to distinguish between “no collisions because ‘cheating’” and “no collisions because ‘is transitioning’”. If we could not distinguish between them and the rocket fails to collide with game objects even though we expect it to collide, debugging the code could become challenging. Maybe not in this little project but very likely in larger ones.

Does that make sense?


See also:

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms