0 votes

I know I know someone has already answered this question


but like what if I want to create a Deadcell-like game that has over a hundred weapons & spells that each of them has individual sprites and animations (I'm going to use animation player for each one of these)?

is it really ok to have a hundred weapons all under the player node?

if not, how can I fix this?

in Engine by (26 points)

Do all the weapons and spells have to be unique? Maybe they can be stitched together from a variety of sprites when the game is run? It cuts down on the number of nodes needed.

I have like 5 sprite sheets that contain these attack movements (all have normal maps, so I can't use animation sprite...) it would be great if I can use node to contain each weapon style (most weapons have combo system).

I would use the method that is best for me...

1 Answer

0 votes

Generally, I'd probably create each weapon as an independent scene and then instance them into the player scene (and attach them to the player) as necessary. Assuming the weapons have some commonality, I'd probably make some base "weapon" scene containing all of the common stuff, and then extend that for each unique weapon as necessary.

by (12,280 points)

Does it affect performance? like if i have too many of them?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.