StarkandcoEnterprises / Secret-game

0 stars 0 forks source link

Fighting #61

Open Starkandco opened 10 months ago

Starkandco commented 10 months ago

Godot #GodotEngine

Firstly, I don't want to act like anyone's been super terrible here, they haven't from what I've seen, but I do want to clarify a few bits on my perspective about a thread on here.

Exporting variables is a really useful tool in godot but not a one trick pony from my perspective, as I have seen suggested in an otherwise pointful thread. Also unique access names are still valuable since 3.5 was introduced i.e. % instead of get_node/exporting a node var.

Getting data from A->B should be an easy process, and I do think godot makes it straightforward with a variety of options depending on what suits your use case.

I'll start with saying how I think @ export is super useful and give a really simple use case for it. Then I can move on to an example for %. I'd show my own projects but I'd be mortified as I am forever improving and dread people's reactions to my project structures because I can see so much room for improvement I don't have in place that deserves those reactions.

Here are two really basic bits. An exported int var that you can change on the fly without having to go into the code, simple but nice. A packed scene var you can drag and drop a tscn file into to start instancing your enemy objects! Genuinely something I could not do without now :)

Image

Image

Starkandco commented 10 months ago

Should be a first pass at a fighting system to hook sleeping punishment into