I decided to make a simple spike trap. Seemed easy enough. Toggle a switch to make the spikes go up and down. On the "spikes up" page, a player or event touch triggers and damages the party. Only problem is, it doesn't seem to work like that. If you're standing on tile when the spikes go up, nothing triggers. Nothing happens.
So I tried a few other things that revolved around parallel processes and checking to see if the player was standing on a square with spikes while they were in the up position. It sort of worked but it triggered so many times that it pretty much kills you. I really only want it to apply the damage once. There also seemed to be a lag issue as I'd get damaged even when the spikes were down sometimes as if the image swap was behind. Tried adding in some waits but that just made things even more inconsistent.
This is typically where I start writing a plug-in to make my life easier but I wanted to ping the community to see if there was some simple solution that I'm overlooking. This is a standard enough thing in RPGs that the default RTP includes these spiked floor event tiles so I'm thinking there probably some fairly easy way to do this.
So yeah, how do make this kind of spiked floor trap work?
So I tried a few other things that revolved around parallel processes and checking to see if the player was standing on a square with spikes while they were in the up position. It sort of worked but it triggered so many times that it pretty much kills you. I really only want it to apply the damage once. There also seemed to be a lag issue as I'd get damaged even when the spikes were down sometimes as if the image swap was behind. Tried adding in some waits but that just made things even more inconsistent.
This is typically where I start writing a plug-in to make my life easier but I wanted to ping the community to see if there was some simple solution that I'm overlooking. This is a standard enough thing in RPGs that the default RTP includes these spiked floor event tiles so I'm thinking there probably some fairly easy way to do this.
So yeah, how do make this kind of spiked floor trap work?





