Hey! A friend and I are making this for class, but we are total novices and we have run into some bumps. Gonna try and be as specific as possible! Think of this as a papas pizzeria style game but extremely simplified (and its an ice cream parlor).
How do I…
Our game’s mechanics are very simple. A customer comes in, says what ice cream they want, and the player hits a key to give them the ice cream they requested. FOR EXAMPLE: customer wants strawberry, so the player hits “s”.
What is the expected result
If they hit the right key, the customer is satisfied and leaves so the next customer comes in. If they hit any other key, however, the customer leaves angry.
What is the actual result
There are 2 problems we have faced with this.
- I cannot figure out how to make it so any other key pressed will trigger the angry reaction. When I press other keys, nothing happens.
- When the next customer comes in, we changed the order to be “vanilla” accompanied by pressing the “v” key. We noticed, however, that this event is not isolated from the first one- if you press “v” on the “strawberry/s” prompt, the customer will still be happy, despite it not being what customer 1 asked for. I think this second issue could be fixed if the first issue would be fixed as well.
TLDR; how can we make each customer’s request totally isolated from the requests of other customers?
Related screenshots
heres some screenshots, dont clown on me too hard if its unorganized or absurd since we are basically learning this program as we go. Any and all critiques are welcome though!