RTS Game - Adding Buildings (Basic Setup & Select/Deselect Functionality)
Vložit
- čas přidán 20. 08. 2024
- In this video we'll introduce buildings to the RTS game. We'll make a parent building class blueprint, and then make our first building. We'll also add the functionality to select and deselect buildings by clicking with the mouse.
Hi Jon, tour videos might not getting many views right now. But your content definitely helps people. Keep it up!
I couldn't agree more.
Aye, fantastic videos. Clear and easy to follow
Listening to Jon is like listening to your kindly grampa teach you how to fix a car. It makes learning so mush easier.
Thank you Jon. There is no other RTS tutorial like this. You helped me and many others immensely!
This is the one of the best tutorial on RTS in Unreal! Great stuff here. Thanks
Just got to this part of the tutorial series and wanted to say thank you for making it. The explanations and comments written in the videos have helped me understand the why of many choices regarding the blueprints so I don't feel like I'm just pasting nodes to the graph.
Thank you boss! I am addicted to this series..
Amazing! been following and having a blast! Thanks again for these amazing tutorials!
Hey Jon, thx for your cool RTS Videos. I Love your Style and hope you came back and make more RTS Style Videos 🔥🔥🔥
This series is amazing. Thank you so much!
Great videos so far. I come from a background in full-stack web programming, and a couple of things jumped out at me:
1. Why implement everything under a single interface? I'm assuming this is just for demonstration purposes, but I am curious if there's an Unreal specific reason to do it this way.
2. Is there a reason you wouldn't want to create a "selectable" interface and add that to both units and buildings? I'm assuming that you've implemented these separately to handle selecting only buildings or units, but the underlying selection logic is essentially the same and I can think of a few ways to handle the filtering instead.
Thanks!
Hi thanks for watching! Certainly you could separate functionality to different interfaces and you're right I am doing it all in one to keep things as simple as possible for beginners. Cheers!
😔 CANT CARRY ON....This making me sad...I did it 3 times and still not working. Cant sign objects like on start.🤷♂ Missing some fixes.
It looks like your finished marquee selection tool cannot be used to select a building (They have to be clicked on directly). Was this intentional, or is it something that could be change? If so, I would really like to see a video on how to change the marquee tool to be able to select building and units, but neither at the same time.
I thought the same too, but as I think about it, buildings in RTS games aren't usually multi-select because they tend to function alone instead of in a group. To have the other functionality you would need to modify the nodes for checking for actors under the rectangle. Likely storing the first type (building or unit) in a variable and only selecting those. Hope that gives you an idea for a starting point if you or anyone else is still wondering
followed this tut after doing the unit selection tutorial and followed it exactly but adding the this new building selections to break drag box selection and also unit selection. anyone else have this issue?
Yes, same issue, cannot select units and cannot deselect the building. Only working in game function is it lets me select the building.
I just found the error is in the "Handle Building Clicks" Macro. When I remove the macro and click "Set Is Left Mouse Pressed?" into "Marquee Pressed" The unit selection and deselection works, and you can also select the building but not deselect it. I've went through and did it as in the video 3 times and have had 0 luck getting it to work properly. Using UE 5.1
Rewatch the video from 8:00 onward. He notices that he broke the marquee selection and fixes it.
Each video I watch in this series is 2 steps forward and one step back with something that does not work lol
Hi, how are you?
I loved your videos, but could you help me?
In the part where we go to MarkHud and change from "actor" to "unit class," something goes wrong, and I can no longer select the building when I hit play.
Can you help me?
niceeeeeee
5.7k views.. 136 likes.. shameful
Hi Jon, thanks for another awesome video. I'm sure I'm telling you something you already know but your mic/sound quality seems to have dropped significantly in this video. I jumped to the next few and they seem pretty bad as well. You're still understandable but it is definitely distracting.
if the unit selection has stopped working, restart the UE5 editor✅
👍
Thank you for all these great tutorials Jon. You are helping me not only learn UE5 but also creating my dream RTS game!!!