Functionality! (And A Cauldron)

21 January 2025 (Continued)

Earlier I had got the game to a stage where if the character approached the red bottle, a message appeared saying, "Use this bottle?", and "Yes" and "No" buttons also appeared on the screen. BUT:
1) the player couldn't select either of the buttons because the mouse pointer didn't appear on the screen, and
2) even if the player had made a selection, nothing would happen, because I hadn't tied any actions to the Yes/No buttons. 


After continuing to watch the tutorial video, I have at last been able to add some functionality to the buttons. 

Now the player is able to choose between Yes and No. If they choose No, nothing happens yet. But if they choose Yes, they now get a message at the top left of the screen, saying "You Win!"



I know this is very very basic functionality, but at least I can build up my knowledge and skills from here. The "You Win!" message is basically a placeholder for what I would eventually want to happen in the game, which would be an animation of the correct bottle (red, in this case) pouring into a cauldron, and then a magical reaction occurring. So at least I know that the logic works. 

Similarly, in the finished version of the game I wouldn't need the user to be selecting Yes/No input, so the buttons are just placeholder-logic for testing that the game is working. In the final game I would just want the character to pick up the correct bottle and take it to the cauldron, and the game would work out in the background whether the correct bottle had been used. 

I admit I am very pleased with my blueprints and event graphs. I've even annotated the event elements, so that I can remember what they do if I go back to them at a later stage:





(However, I will also admint that I don't fully understand what a widget is, yet.)

The other task I've achieved today is to knock another item off the 'Must Have' list; I've created a cauldron shape:
(It's got three little feet on it, but the shadow covers them up.) 


As I'm discovering though, everything I learn makes me realise that I need to learn another two or three new things. So now I need to know how to fuse the cauldron's body with its feet to turn it into a single object, and I need to know how to make the body of the cauldron hollow, instead of just being a flat hemisphere.


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