#how do u make weapon upgrades in 2D?

4 messages · Page 1 of 1 (latest)

unborn talon
#

what are you upgrading and how is it relevant to being in 2D or 3D?

unborn talon
#

That depends on your weapon system

#

You'll have to define what a "weapon" even is, as far as your game code is concerned.

If your weapons are just scenes, then yeah, I guess you could just make one for each weapon and one for each upgraded version.

If your weapon are a block of stats (damage, rate of fire, range, etc), then you could pre-make your block of stats for each upgrade and swap them in as needed.

If your weapon can be upgraded dynamically or randomly (not preset progression), then could be you need to make a modifier system that applies on top of the weapon and modify the original stats (adding or multiplying or what not)

#

so without additional details, it's not really an answerable question.

cause that means also having a weapon system in place to even accept upgrades in the first place.

if you don't know what the weapons are, you can't really plan around how you'll upgrade them.