How do i go about potion and collisions

i want my player to pick up a potion so that they can walk on terrain that without the potion would kill them. how do i do this. for example without the water potion they cant swim in water.

this is my game :

1 Like

you could make this by having a switch in the code where the player dies when touching the dangerous terrain. once the player picks the potion up, (using a collision block) it would turn this switch off making it safe to go through.


rather than using a collision block could i use proximity instead because my character dies without touching the block rn.

1 Like

Then just use proximity!