u/DolliTheSheel

▲ 5 r/godot

Hi,

I want to start a project with Godot and I'm a bit confused regarding the programming languages.Not talking about performance or the difference between C# and C++ but the integration in the engine.

My prior experience in coding is in java, so I have to learn one of them. Gdscript seems a bit weird because it offers no interfaces and similar stuff, and since I'm familiar with it I want to make use of it.

I've done the starter tutorials in c# and I did make the starter project for the c++ plugin, but as far as I can see the only difference is that you can't do c++ in the editor and you have to take some extra steps to make them work. Anyway you have to use some c# to make use of your c++ classes in the level, is that correct?

But the debugging tools of the editor won't work with either of the languages and your propably gonna use vs code anyways.

Are there more upsides/downsides I'm not award of yet? I would like to get familiar with c++ but also want to avoid running into problems later on.

reddit.com
u/DolliTheSheel — 12 days ago

Hi,

I have an event which is called when an item is in use, so my npcs can abort tasks if their target becomes unavailable. Talking about a "move to/pick up" task for instance .The problem is that the npc who is actually using the item will also abort his action when the event gets called.

To solve this I do a check in the "abort task" event which gets called if the npc is currently carrying the item which he subscribed to the InUse event and ignore it if so.

Is there a better approach to this? Can I somehow get a ref of the item calling the event or send informations with it?

using blueprints so far

reddit.com
u/DolliTheSheel — 15 days ago