So here’s what I’m doing. I finally got around to making one of the bosses, but I’m having trouble with his special attack. You see, when the player enters the arena zone, after 10 seconds he opens a portal, then a second later launches a laser into it. then another 2 portals open, wait a second, then the laser travels between those two. then two more appear, so on and so forth. eventually, the laser hits him, deals 300 damage and removes all the lasers. 10 seconds later, he repeats the attack. If he is knocked out by the lasers or a gadget, the lasers and portals are deactivated, and a staircase appears, leading out of the arena.
Sorry if this fries your brain I could not explain it simpler
make the damage dealt for the laser beams a high number for the player if they hit them and make sure the final laser is placed to intersect the boss hitbox, and use wire repeater to control the 1-second delay between the portal/laser activations.
get a counter and make the target value 1, and when counter completes it damage boss, and the damage amount is 300, and wire the trigger to send a signal to the counter on the damage boss channel. Or you can do when the final laser is activated – deactivate sentry.
Okay this is a little confusing but I’m guessing what you need is pseudo-health
Make a counter that starts at a certain value (That’s a thing, right?) and when the channel that activates the final laser broadcasts, have that decrement the counter by 300.
The counter’s target is 0. When target reached → make those things happen.
(I’ve gotta check if this is actually possible real quick, since this is all straight out of my head lol)
This just in:
Yep, it’s possible!
You’d have to do a trigger loop for the counter to decrement 300 times, though. Or a repeater, if you’re a person who likes commiting crimes against humanity
More pros for this system:
If you have the counter update a property, you can use blocks in a game overlay to display the boss’ health
Do you need the boss to be damagable by gadgets? If so, then it would be impossible to have the gadgets damage the boss based on how much damage the gadget actually did.
Do you want the lasers to stop if they hit someone? I feel like this would make the boss more engaging, as you have to dodge the attack in order to hurt the boss.
Do you want the portal the laser comes out of to be random until the last hit, or not?
As for the pseudo-health, if your answer to question 1 is no, it’s probably better to have the boss perish in a certain number of laser hits rather than subtracting health from a health-bar.
I might build this system if I have the time.
Potato patato
Fortunately, we actually can’t use a repeater. The minimum delay is 0.5, and the repetition count definitely can’t reach 300.
Detecting the laser depends on how you determine when the laser is fired. As for damaging the sentry, I would think the best way is with another sentry. Unfortunately, those are pretty unreliable. The best way is to quickly activate and deactivate a sentry whenever the boss takes damage from the laser.
Yeah, that seems a little more feasible. Working with sentries is quite the pain. I know this from experience.
Sorry for the late reply. What my initial thought was, the portals both appear at the same time, and the laser is straight vertical. The arena looks good tho