Adding Logic To The Game In UE5

 21 January 2025 (Part 2)


Yay - I've continued to watch the tutorial and now the cursor appears on the screen and the player can select either Yes or No. Nothing happens yet, of course, but I'm GETTING SOMEWHERE. Shame the game has to be finished tomorrow...

Now if the character approaches the red bottle, a message appears saying "Use this bottle?". The player then has to choose between Yes and No. If they choose No, nothing happens. If they choose Yes, they get a message at the top left of the screen saying "You Win!"



These two actions are just 'placeholder' steps, to prove to myself that the logic of the game is working. As far as I'm aware, it wasn't even necessary for the logic of the game to work for this Gateway Level 2 course, so I could have just left these as text boxes on a 'greybox' level. But instead I've introduced logic to the game so that the character can interact with other assets (coloured bottles, in this case), and actions will then happen as a result.

Functionality of the game at this stage
At this stage, I have now achieved several of the 'Must have' tasks that I set out when I designed the game, and many of the 'Should haves':
- 7 different-coloured bottles
- The bottles can be picked up by the character
- When the bottles are picked up, the character is actually 'equipped' with them (i.e. the bottles move into the character's hand)
- When the character approaches a bottle, a choice automatically appears on the screen, asking them "Use this bottle?"
- The player can then use their mouse cursor to click on the Yes/No button
- If the user chooses the correct bottle, they are given feedback that they have won

Still to do:
- Create a cauldron
- Create a hint-note for the player
- Put the bottles on a higher surface - e.g. a bench

Things I'd LIKE to do (but might not have time for):
- Try to create a simple laboratory-interior setting
- Try to include the external view of Aelinor
- Try to create a doorway that allows the character to get from the outside of Aelinor to the inside
- Try to make the bottles the right size in the character's hand when they are picked up




Comments

Popular posts from this blog

Creating A Door And Also Adding Foliage Using CubeGrid Tool in UE5

Using Sockets in UE5 to Allow a Character to Hold Objects

Games Development Level 2 Project