#Looking for help with a Hero Shooter!

9 messages · Page 1 of 1 (latest)

willow shale
#

I've wanted to and planned to make a hero shooter for a long time and have recently convinced a friend to work with me to learn and create a hero shooter together.

Neither of us have alot of experience with any of the parts needed but are both very motivated people and are happy to and plan to put in the work to learn all the skills needed to complete such an extensive project.

I have already started to learn but after doing a fair bit of research and trying to figure things out myself I havent really found anything to help with how to actually make a hero system I've learned the basics of making a player controller and shooter etc but I'm not sure on how to make a system that allows me to make characters with different health, abilities, weapons, move speed etc. so i was hoping someone would be able to help me figure that part out.

Thankyou in advance!

raw tendon
#

You'll probably want to use custom resources, especially if you want more than one hero.

https://youtu.be/zbAKzM-Odb4?si=rPt55GgAPzL8qfv1

In short you can set a bunch of variables on your template script and then create individual .tres files for each hero. Then you can just adjust the various stats in a given heroes .tres file

It seems more complicated than it is, give it a shot though. Resources make everything better.

Godot has many amazing features, resources and custom resources being one of those. The ability to create reusable data containers that can be shared all around your project really helps to make workflow in Godot so smooth. Understanding how resources can be used within Godot can really change the way you develop as it helps to keep your project...

▶ Play video
willow shale
#

Hi sorry for the late response I ended up falling into abit of a rabbit hole of videos and research and stuff and resources seem like a super helpful part of making a hero shooter I think my biggest issue now is I’m struggling with figuring out where to like start, I can get as far as making a player controller and making it configurable but I get abit confused on what the next best step is in terms of how to work in a health system and abilities and weapons specifically for each character or even how to make a system to change characters, I think I’ve kinda got all of it in my head and I need to pace it out but I just get abit lost with how best to pace it if that makes sense

willow shale
raw tendon
#

So first, I'd focus on setting up one hero, but do it in a way that you can make more easily by making new .tres files.

Id make a HeroResource.gd that extends Resource

Give it a class_name like HeroResource

Add any variables you want to assign to your player. Current health, max health, move speed, jump height, name, skills/abilities etc etc.

Leave these variables as either blank values like @export var name: String = " "
Or default values that you can adjust for other heroes.

Then create a new resource, select your HeroResource and name it, maybe like hero_1 or even default_hero.tres or whatever else.

Then in your player controller script you can add @export var hero_data: HeroResource

Click your player controller node and in the inspector youll see a spot you can drag your .tres file into.

Now you have access to hero_data.name or hero_data.speed etc etc.

Use these to program your player controller and now it has the data you set in your hero.tres.

When you're ready for a second hero, you can create a new HeroResource .tres file with different data in its variables, and drag that .tres file into your hero_data on the Player Controller.

willow shale
#

thankyou, thats a super big help, at the moment im following some tutorials making sure to understand everything im typing and trying to implement it in a way that makes sense with my project including using resources within the things im making

willow shale
#

This is my progress so far, I made the character controller from basically merging a bunch of ideas from tutorials and stuff trying to make one that felt right for me and the selection ui I tried to do entirely by myself, im not sure if i did any of it right or how to implement it to change character and stuff but im alot closer than i was before!

raw tendon
#

Awesome! Great progress!

willow shale
#

Im struggling to understand how i'd make the buttons actually change character