Blocking exits?

Hi again! On my roguelike project, the player can go into "targeting" mode to target some attacks and abilities. This is supposed to only be used on the current room. Unfortunately, the player can use this targeting mode to walk all through the game. Is there a way to prevent the exits from triggering using PulpScript?

Pit_step_2

1 Like

Use an invisible block, it should turn into a solid block when solidify is called on it, that will stop the player from going through, (it will sit directly on the exit's tile) the non-solid exit blockers code:

on collect do

end

on solidify do
play "exit block solid"
end

The solid exit blockers code:

on collect do

end

on solidify do
play "exit block"
end

Now, to block the exits just make both of those types of tiles call "solidify" to toggle between solid and non-solid.

2 Likes

That would work. Thanks!