Тёмный

Modular Weapon System with Custom Resources // Make An FPS in Godot 4 (E20) 

StayAtHomeDev
Подписаться 37 тыс.
Просмотров 15 тыс.
50% 1

In this video, we’re creating a modular weapon system for my first person shooter project. We’ll be using scripts and custom resources so we can quickly save weapon attributes and swap between weapons efficiently.
🔥 GET THE SOURCE FILES ►► / stayathomedev_
👉🏼 FREE BASIC FPS SETUP SOURCE FILES ►► github.com/StayAtHomeDev-Git/...
-----------------------------------------------------------------------------------
✅ Basic FPS Setup Video ►► • Make An FPS in Godot 4
✅ FPS State Machine ►► • E07 - State Machine In...
-----------------------------------------------------------------------------------
0:00 The Godot FPS Project
0:29 Why Modular System?
1:17 The Plan
1:35 Custom Resources
2:02 How To Use Custom Resource
3:25 The Weapon Resource
3:54 Loading Weapons
5:05 Create & Edit Weapons
5:37 Running Scripts in Editor with tool
6:15 Adjusting Weapon Position In Editor
7:00 Quick Weapon Switching Test
7:28 Final Results
8:04 More FPS Tutorials
-----------------------------------------------------------------------------------
This series is part of my sponsored Godot FPS Project where we will walk through how to create an 3D FPS game in Godot 4, step by step. I won't be skipping any steps in the process and everything will be sequential video to video.
This initial basic FPS setup project is available for free to download and use using the MIT license via the link below. For all future videos, the project source files will be available to my GitHub Sponsors.
Joining my Patreon in one of the 3 tiers will give you:
- access to the private Discord channel
- your name in the project README
- early access to tutorial videos
- power to vote on what mechanics get covered in future videos
- full access to the project source files to use in your own projects
-----------------------------------------------------------------------------------
STAYATHOMEDEV ►► stayathomedev.com
TWITTER ►► / stayathomedev
GODOT ASSET MARKETPLACE ►► godotxc.com/
#godot #godotengine #fps

Игры

Опубликовано:

 

1 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@stayathomedev
@stayathomedev 4 месяца назад
🔥 GET THE SOURCE FILES ►► www.patreon.com/StayAtHomeDev_ 👉🏼 FREE BASIC FPS SETUP SOURCE FILES ►► github.com/StayAtHomeDev-Git/FPS-Godot-Basic-Setup
@DrW1ne
@DrW1ne 4 месяца назад
i love how this is turning out already!
@Hex_is
@Hex_is 4 месяца назад
sick video ty! I've only been learning Godot a couple months I'm definitely going to come back to this video once I've learned a bit more of the basics :)
@starplebe9916
@starplebe9916 3 месяца назад
Been using Godot for years and still learned a bunch of new tricks with this series. Thank you so much!
@Emaxoso
@Emaxoso 4 месяца назад
I can't wait for the character rigging tutorial, these videos are amazing!
@sOwOmite
@sOwOmite 4 месяца назад
Tip for people: use class names, If you do that you can get the node as a component to the instantiate node menu (ctrl + a in scene tree) Other benefits are on the script Side. But read the Docs on class_name so you can get a crasp on this cool tool
@jjhh1606
@jjhh1606 4 месяца назад
Just wanted to thank you for your time and efforts. Saw this latest upload and I'm about to go through the entire series so I might have a more than functioning 1st person mode to box out some horror levels. I am new to coding in general and gamedev but im a gamer at heart. Also thank you to the patreons that support. Things that come to mind for an FPS or a game that uses an First Person system would be: Prone position/crawling. Picking up objects, throwing objects. (Pressure plates, puzzles, flares, torches, grenades, rocks, etc) Leaning left and right. (In an action or horror setting, i.e. lean animation length to draw out the creepiness or a snappy one for FPS) Climbing ladders. Hanging onto ledges/climbing up from ledges. Vaulting over waist high walls. Forward long jump / "lunge" if you will. (To traverse horizontally for more adventure type games) Flashlight "tool" that functions within per your weapon system. Either a handheld one or a chest flashlight that isn't visible but can be toggled. (Pipboy radial light or forward cone low powered light) Just things like that! I am sure you already have vids recorded and everything all planned and drawn out but it would be worth tackling some of these video tutorials that are admittedly for your First Person Shooter type game, but with other genres or methods or modes in mind! I hope my perspective with desiring a broader scope of some actions for different types of games makes sense given the lack of solid follow along tutorials. Again. Thank you for all of this, entirely inspiring sir. Take care of you and yours and have a wonderful day.
@jjhh1606
@jjhh1606 4 месяца назад
Someone mentioned swimming in fps games in an earlier upload as well. You had asked what part. I assume it would be having to do with suspending the player within the water. But a full a-z would be a boon to the community in general. Water surface.. shader? Material?, the area/function that suspends the player while within water controls while swimming, drowning/air, jumping out of water or only allowing climbing up ladders to exit water.
@jjhh1606
@jjhh1606 4 месяца назад
Ahh! What about a "free look" feature like that in Arma or thr like. I.e. hold Alt and you can rotate your head / camera freely as if you were twisting your head to look behind you until a certain point. (So your hear isnt acting that that of an owl haha)
@stayathomedev
@stayathomedev 4 месяца назад
Wow! Thanks for the writeup. There def a lot that can be covered. Will try to do as much as possible!
@olson5000
@olson5000 3 месяца назад
This was great, thank you! I'm using it to swap between items on benches for a chef game
@NuovaStarGaming
@NuovaStarGaming 2 месяца назад
I have few suggestions, Can u make videos on weapon customization and inventory system? Loving ur videos so far!
@sOwOmite
@sOwOmite 4 месяца назад
Composition is nice , I made prop attribute components with it, And used resources for interactive guns
@WiseNoodleOfficial
@WiseNoodleOfficial 3 месяца назад
This can also be applied to holding items :D Thank you good sir!
@user-ep9fc6xk6k
@user-ep9fc6xk6k 4 месяца назад
Will you be making a viewmodel hands tutorial with this project? A common issue I have seen on the internet and have run into myself is making any sort of more advanced FPS animations in Blender and exporting them to Unity. There are none or close to none tutorials about such workflows, and almost all FPS tutorials just use a floating weapon.
@Mani-xx4fz
@Mani-xx4fz 4 месяца назад
I’m flipping out about the performance you get from this engine in terms of fps, amazing 🤩
@stayathomedev
@stayathomedev 4 месяца назад
I'm on a 3070 and certain settings will kill fps still. But the engine handles everything well so far.
@hinahammad1047
@hinahammad1047 Месяц назад
Wait till u hear about Jolt
@LowTGaming
@LowTGaming 10 дней назад
Man I love the videos but the cuts are pretty harsh. Ill be following step by step and then we skip ahead to something already being loaded in, I'm happy to see the future episodes are basically hand holding
@lethn2929
@lethn2929 4 месяца назад
I am curious to see how other programmers handle vent crawling and ladders, a lot of tutorials on that are woefully out of date and mostly incomplete so I had to figure that out myself.
@jjhh1606
@jjhh1606 4 месяца назад
Definitely need more "base" type tutorials for sure. Hopefully he tackles some of these as the series goes on! Vents. Ladders. Ledges. Vaulting. Etcetc.
@jjhh1606
@jjhh1606 4 месяца назад
*for godot in general
@charlieking7600
@charlieking7600 3 месяца назад
Take a look for "Cogito" sample for Godot 4.
@werqak
@werqak 4 месяца назад
Can it be something else than a crowbar, if so, an AK for example, at one point?
@hery8148
@hery8148 3 месяца назад
in the weapon resource script, is it possible to create several different types of weapon: melee, hitscan and projectile with one resource script?
@Count_Goatenberg
@Count_Goatenberg 2 месяца назад
When I load the scene the weapon mesh is in the right position and doesn't cip - but as soon as I move or rotate the camera it changes position based on that.... Tried to figure out why but couldn't.
@rahulraghu4928
@rahulraghu4928 21 день назад
Is that star wars demo scene still available somewhere?
@jasonwilliams8730
@jasonwilliams8730 4 месяца назад
👍
@snippy7990
@snippy7990 2 месяца назад
this is nice, can u go more into detail how you got a mesh that can be selected in a resource? I'm struggling with that.
@scarzehd27
@scarzehd27 6 дней назад
If its not letting you select what you want in the editor, make sure you have a type set in your script. @export var mesh:MeshInstance3D instead of @export var mesh
@sill.k8272
@sill.k8272 2 месяца назад
What if godot says that value of type mesh cannot be assigned to a variable of type MeshInstance3D?
@Beanibirb
@Beanibirb 4 месяца назад
Another video closer to the eventual leaning mechanic one
@stayathomedev
@stayathomedev 4 месяца назад
haha it's coming
@Beanibirb
@Beanibirb 4 месяца назад
Patiently waiting for it
@carelesswhisker4155
@carelesswhisker4155 13 дней назад
I'm following this tutorial, but you inserted the crowbar mesh into the variable offscreen. How did you do that? If I export as obj it loses its texture, and if I export as glb or blend it becomes a "packed scene" which the mesh variable doesn't accept. How did you get a textured mesh from blender into godot?
@stayathomedev
@stayathomedev 13 дней назад
You can add the material to the obj file. Usually with glb those textures get imported
@carelesswhisker4155
@carelesswhisker4155 13 дней назад
Okay I figured it out. For anyone else experiencing this problem, double click the glb to open it in a new window. Click "actions" in the upper left and the third option will be "Set Mesh save paths". Whatever folder you select, it will add a meshinstance3D that you can populate your mesh variables with. If the scale of the mesh is warped, it's an issue in blender, not godot. While hovering over your sculpt window, hit ctrl+a and then select either "scale" or "all transformations" to set its default scale to its current scale. Then when you import the dimensions should be correct :)
@dmas7749
@dmas7749 3 месяца назад
you didn't show how you set up the actual weapon tres, not sure how i apply the mesh
@gli7ch240
@gli7ch240 3 месяца назад
Yes I'm having same problem. Please help my game crashes front the script everything works except that last function where it sets the gun rotation position and mesh I 💬 no it is because I don't have the mesh put in the resource but as you stated I can't figure that out either.
@dmas7749
@dmas7749 3 месяца назад
@@gli7ch240 i'd suggest just looking for another video, this tut has big "draw the rest of the owl" energy
@dusk611
@dusk611 2 месяца назад
you can export ur mesh as .obj which when u import its automatically converted into a mesh, not a unique scene like .glb and other extensions ive tried
@DrW1ne
@DrW1ne 4 месяца назад
what godot theme are you using?
@stayathomedev
@stayathomedev 4 месяца назад
PassiveStar's minimal theme
@-non-stop8766
@-non-stop8766 3 месяца назад
Hello, Is it possible to somehow show how to change weapons and also, if possible, how to make a Gravity gun from Half-life or Garrys mod? Thx
@gli7ch240
@gli7ch240 3 месяца назад
Im am a beginner at this godot and game making atuff but i have been following your tutorials and tweeking some things to my liking. Im trying to make a mobile cod zombies game i have a map and zombie and character all working woth mobile controls which wanst easy for annoob like me. I am javing one small prob woth this modular weapon system though i have a postal with a mag and bullets and a whole bunch if bones i changed thebroot bode to mesh instance 3d but it isnt letting me mesh it and i dont know howbyou got the mesh put in your resource. I think this is my main prob because my game keeps crashing the error isbin the script it is because the script isnt finding a mesh and shadow mesh dueing the load weapon function plz help you skipped this part in the vid. 😢
@dusk611
@dusk611 2 месяца назад
export ur mesh as .obj its automatically converted into a mesh
@Balnor
@Balnor 4 месяца назад
Nice and i guess... First?
@stayathomedev
@stayathomedev 4 месяца назад
Yes you are!
@Jaxrud
@Jaxrud 4 месяца назад
Multiplayer?
@issaissa7240
@issaissa7240 4 месяца назад
Awesome tutorial, I finished the whole thing and everything works, I can't wait to see what's next! Check out my demo to see the modular weapon system in action : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2Q-wHVEUois.html Thank you and I'm looking forward to the next one!!
@jjhh1606
@jjhh1606 4 месяца назад
Just about to start myself! Thanks for the feedback on your process through followin it!!
@Rian01_
@Rian01_ 4 месяца назад
It would be better if it was in the latest stable version of Godot, version 4.2
@stayathomedev
@stayathomedev 4 месяца назад
It is!
Далее
I Built 100 Houses And Gave Them Away!
09:36
Просмотров 61 млн
Optimizing my Game so it Runs on a Potato
19:02
Просмотров 450 тыс.
Immersive Sim in Godot 4: COGITO - Overview
8:22
Просмотров 33 тыс.
Custom Resources - A Godot Workflow GAME CHANGER
4:44
Просмотров 157 тыс.
I learned game development for 6 months...
11:42
Просмотров 40 тыс.
These awesome 3D games are made in Godot
5:40
Просмотров 86 тыс.
Can I Remake Super Mario World in Godot? (Part 1)
18:44
How To Make A Game Alone
16:44
Просмотров 216 тыс.
▼ЧЁРНАЯ МАГИЯ 🔮
31:15
Просмотров 502 тыс.
СТРИМ ► Elden Ring - Shadow of the Erdtree #7
4:32:01