Hi everyone,
I'm currently creating a lava dungeon in my game and introducing dangerous tiles that deal Floor Damage when the player walks over them. When the player walks on the Light Red tiles, no damage is taken, but when the player walks on the Dark Red tiles (typically placed closer to the lava, which players can sometimes walk around at their leisure), they lose some HP. The Tileset -> Damage Floor buttons are working as expected, but I wanted to customize part of the dungeon in such a way that the tiles of that area actually flip back and forth, between Light Red (no damage / safe-to-walk) and Dark Red (damage-dealing). I want to make this part of the dungeon more timing/strategy based, but I'm having trouble figuring out how to make a safe tile change to a dangerous tile (and then turn back again after a second or two) during the game.
I thought that maybe creating an Event for each tile I want to flip back and forth could be a solution, and I've tried a few things to no avail. I'm assuming that "Change Tileset" isn't the way to go, because that would simultaneously flip everything on my entire map, rather than an individual tile. (As an absolute last resort, I suppose I could make a smaller, separate map for this tile-flipping puzzle, but I'd much rather keep this lava dungeon as one large map, if possible, and I want different tiles to individually flip at different times anyway.)
I explored making a Below Character Priority two-page event for a single tile, the first page with Wait 120 Frames + Turn Switch On, and the second page with Wait 120 Frames + Turn Switch Off, and that was successful with creating an independent flipping *image* between Light Red and Dark Red (when the Trigger of both pages was set to Parallel), but I wasn't able to make it deal damage to me when I walk over the Dark Red image, yet be safe when I walk over the Light Red image (because the underlying *tile* below the image was never actually flipping, just the image laid on top of it). Adding in contents to an event page, like Change HP and Flash Screen - both of which normally happen when a player takes Floor Damage - automatically occur when these Parallel events switch their Light/Dark Red colors, even if I'm nowhere near the tiles. I obviously only want the screen to flash and the player to take damage when the player is actually standing/walking on the dangerous tiles, not merely when the player watches the tiles switch from safe to dangerous, from afar, but that's undermined when I put those commands in the Parallel pages running automatically (and I couldn't find a Conditional that said something like: "IF the player is standing/walking on this current Dark Red image, THEN flash the screen and change their HP", but I feel like such a thing would be a viable solution to my issue).
So while I can toggle images on top of individual tiles, they aren't toggling the actual tiles or the safe/dangerous effects, and I'm having trouble making events enforce the idea of "you need to time your movement correctly, because this tile switches from a safe space to a dangerous space after some time". Any ideas how I could set this up? (I guess it's kind of like wanting to create a rhythm similar to Crypt of the NecroDancer.) Thanks!
I'm currently creating a lava dungeon in my game and introducing dangerous tiles that deal Floor Damage when the player walks over them. When the player walks on the Light Red tiles, no damage is taken, but when the player walks on the Dark Red tiles (typically placed closer to the lava, which players can sometimes walk around at their leisure), they lose some HP. The Tileset -> Damage Floor buttons are working as expected, but I wanted to customize part of the dungeon in such a way that the tiles of that area actually flip back and forth, between Light Red (no damage / safe-to-walk) and Dark Red (damage-dealing). I want to make this part of the dungeon more timing/strategy based, but I'm having trouble figuring out how to make a safe tile change to a dangerous tile (and then turn back again after a second or two) during the game.
I thought that maybe creating an Event for each tile I want to flip back and forth could be a solution, and I've tried a few things to no avail. I'm assuming that "Change Tileset" isn't the way to go, because that would simultaneously flip everything on my entire map, rather than an individual tile. (As an absolute last resort, I suppose I could make a smaller, separate map for this tile-flipping puzzle, but I'd much rather keep this lava dungeon as one large map, if possible, and I want different tiles to individually flip at different times anyway.)
I explored making a Below Character Priority two-page event for a single tile, the first page with Wait 120 Frames + Turn Switch On, and the second page with Wait 120 Frames + Turn Switch Off, and that was successful with creating an independent flipping *image* between Light Red and Dark Red (when the Trigger of both pages was set to Parallel), but I wasn't able to make it deal damage to me when I walk over the Dark Red image, yet be safe when I walk over the Light Red image (because the underlying *tile* below the image was never actually flipping, just the image laid on top of it). Adding in contents to an event page, like Change HP and Flash Screen - both of which normally happen when a player takes Floor Damage - automatically occur when these Parallel events switch their Light/Dark Red colors, even if I'm nowhere near the tiles. I obviously only want the screen to flash and the player to take damage when the player is actually standing/walking on the dangerous tiles, not merely when the player watches the tiles switch from safe to dangerous, from afar, but that's undermined when I put those commands in the Parallel pages running automatically (and I couldn't find a Conditional that said something like: "IF the player is standing/walking on this current Dark Red image, THEN flash the screen and change their HP", but I feel like such a thing would be a viable solution to my issue).
So while I can toggle images on top of individual tiles, they aren't toggling the actual tiles or the safe/dangerous effects, and I'm having trouble making events enforce the idea of "you need to time your movement correctly, because this tile switches from a safe space to a dangerous space after some time". Any ideas how I could set this up? (I guess it's kind of like wanting to create a rhythm similar to Crypt of the NecroDancer.) Thanks!