How to do continuous damage?

Could someone show me how to make the player take damage for as long as they are touching a certain object?
game link

1 Like

Could I also have help with the portals? I want them to take you to the next level only when the animation plays, and that animation only plays when you hit switches.

1 Like

Yep, let me switch over to computer first.

I’ll make 2 examples, for your 2 questions.

1 Like

Level 1 and 2 @_GAMOOG

1 Like

2 Likes

Is the switch set to off by default?

1 Like

I’m not sure how to use the portals sorry

1 Like

How much time is in the timer?

1 Like

I’m not Sigma, but use whatever you want, depending on how rapidly you want the player to take damage.

1 Like

ok

1 Like

yes the switch is off by default.

2 Likes

The timer can be how ever long you want but would suggest less than 1 second.

2 Likes

ok

1 Like

Neither of them are working could someone please help?

1 Like

What objects have the code in your game?

For the portal, it’s portal-tech and the switches, which are called portal unlocker and lleH portal unlocker respectively.

For the continuous damage, it’s the bladesaw and the player’s Health bundle.

1 Like