Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Shielding

okay this is my first post, what I'm trying to do (in XP) is make a simple SCI-Fi game

okay here is my real issue

1st) i want to make an upgradeable/downgreable weapon, more particularly i want a gun that normally fires a white laser, but i want to be able to add and take away upgrade chips which will change the color and attributes of the weapon

For example:

Blaster (no attributes) + Red Chip (Red attribute) = Red Blaster (Red Attribute)
or
Blaster (no attributes) + Blue Chip (Blue attribute) = Blue Blaster (Blue Attribute)

But the chips need to be removable

Red Blaster (Red Attribute) - Red Chip (Red attribute) = Blaster (no attributes)

Then i want it to be able to get more complicated

Blaster MK2 (No attribute) + Red Chip (Red attribute) + Blue Chip (Blue Attribute) = Purple blaster ( 50% Red, 50% Blue)


Any Help would be great
 
The most common way to do this is called "crafting"

You can call a common event from an item, but not from a weapon.
So you could have an item called "Red Chip" that calls a common event that looks for either weapon, then asks the player to verify that he wants to add the chip to one of the weapons.

Removing them is a different issue. What if we created some other items called, "Red Chip (In Blaster)" or something like that.
When you deploy the original Red Chip, you remove the "Red Chip" item, add a "Red Chip (In Blaster)" item, and swap out the Blaster for a Red Blaster.
Now, when you 'use' the "Red Chip (In Blaster)" item, you remove that one, add the plain "Red Chip" back, and again swap out the weapons.

If you add a chip to the MK2, you check to see first if it's a blue or red MK2, and if so & the new chip is the other color, you get a Purple Blaster.

Each weapon (and variation), and item is it's own item, so you can also change the graphic (Icon) associated with each.

Make sense?
 
Yes it does, thank you, moving on lol

2nd) I want to be able to do the same thing using a shield generator

For example

Shield Belt (no attributes) + Red Chip (Red attribute) = Red Shield Belt (Red Attribute)
or
Shield Belt (no attributes) + Blue Chip (Blue attribute) = Blue Shield Belt (Blue Attribute)

But the chips need to be removable

Red Shield Belt (Red Attribute) - Red Chip (Red attribute) = Shield Belt (no attributes)

Then i want it to be able to get more complicated

Shield Belt MK2 (No attribute) + Red Chip (Red attribute) + Blue Chip (Blue Attribute) = Purple Shield Belt ( 50% Red, 50% Blue)

But i would like it to interact as fallows

If a Red Blaster fires on a Red Shield belt, no damage is done
or
If a Blue Blaster fires on a Blue Shield belt, no damage is done

However if a Blue Blaster is fired on a Red shield belt, 100% damage will be done

and of course If a Purple Blaster fires on a Blue shield belt, 50% damage will be done
 
Well, the shields you would do the same as the weapons.

The last part doesn't seem to make sense. Actors fire on Enemies, Enemies fire on Actors, and Enemies don't have weapons or armor.

You could create 3 elements (Red, Blue, Purple), and use those to control the amount of damage to an enemy.
For example, you set the Red weapon with the Red Element.
Then, for an enemy that would have a Red shield, you set the Element Efficiency for Red to E (0%)
for an enemy that would have a purple shield, you'd set the Element efficiencies for both Red & Blue to D (50%)

Now, on the flip side, for the enemy attacking the player. No way to do this that I know of. You could set the element on the armor as well, but it would only add the extra protection against skills used by the enemy that have the same element alignment.
And even then, it would only reduce the damage by 50%. It would have no effect from normal attacks from enemies.

We would have to modify the battle system to check the enemies element alignment, then the actors current armor, and make the appropriate adjustment to the damage. Give me some time, I'll take a look at the battle system.

confused yet? :scruff:
 
yeah i thought about setting the different types of beams ( red, blue, yellow, orange, green, purple) as elements

then i thought about making the actually attack into a skill, that is unlocked by equipping the item. The enemies ( i believe) can use skills, allowing them to attack back, the shielding completely negating the corresponding colored attack, is where im stuck. im new to the idea of game design, although i do have basic coding skills, im afraid modifying the battle system may be over my head.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top