Gadfly King Final Boss

After so many weeks of hard work, Im almost finished with the game…now I have to create the code for the final boss, Master Calamity! I want him to shoot bolts of lightning that act as homing missles that disappear when the player strikes the lightning bolts, as well as a health bar for Master Calamity. How can I pull this off? I’m very excited to finish this game and credit everyone who had helped me with the development of it.

@DisastaBasta23 You can attach the Proximity(getting the position of the player) and the Point At blocks together to make the lightning track the player(needs a trigger). Then, the lightning can be Velocity block-ed to the target. You can make a collision or sensor block to check if there is a player strike nearby, and if so make the lightning destroy itself.

Got it. As for the health bar and damage, I want Calamity to take damage depending on the player’s attack power that they gained fighting enemies through the game. Also, I want the sprite to rotate like a actual thunderbolt. How do I do this?

hi, I hope your pfp is just a baby picture, cause its a pretty bad thing to show a picture of your face at a young age.

can we not get off topic? Still need help with this

For the damage based on the enemies killed you can add like .1 to a save value called like damage and when ever you attack something that has say 100 health you can take off your normal damage times the damage save +1. So if you normally take off 10 health but you killed 5 enemies so your damage value would be .5 it would multiply 10 * 1.5 to take off 15 damage

And what do you mean sprite to rotate like an actual thunderbolt so I can help you

Rotating the sprite is not hard but you would need pathfinding for the lightning bolts

You can use this games code:

(Credit to @thebrickccentric)

i know of the rotation behavior, so maybe a piece of code involving that?

nevermind, i figured it out (i think). As for Calamity’s health taking damage depending on the attack power, i could use a global, but what should the code look like?

Do you want the attack power to go up or be based on distance or something else?

to go up with every enemey you clear from the previous levels, and when you fight Calamity the current attack power you gained so far is the attack power you use to attack Calamity

For that you’d want a global variable that adds +1 value every time you kill an enemy then scales damage. I will work on an example code for you.

okay, thanks. by the way, since it’s been a while, do i continue a new topic?

Not if ur the owner.

Great, so can you give me the example code?

I mean, you could just follow what he said…