Hello,
I have a bit of an unusual question- I want to make a tile that is passable only when the player is dashing. Is there any way to do this?
Thank you in advance for your help.
Well, I do have a simple plugin free trick; the only downside it has is using too many instances of it might slow the game down on that particular map, but it should work if used sparsely.
I'm assuming you are using the shift key to dash.
Create an event, set it to same as character priority and make it parallel. Put this in the first page:
◆Wait:5 frames
◆If:Button [Shift] is pressed down
◆Control Self Switch:A = ON
◆
:End
Now for the second page. Check self switch A, make it parallel too and set the priority to below characters. Put this in it:
◆Wait:5 frames
◆If:Button [Shift] is pressed down
◆
:Else
◆Control Self Switch:A = OFF
◆
:End
As long as the player is dashing with the shift key they'll be able to cross. As soon as they stop dashing, invisible wall! Hope it helps, I'm sure that this could be cleaner with some script usage but it's perfectly functional as it is.
You could always add something to the parallel process event that checks for whatever region the player is standing on, and if it's a certain number (whatever you paint over the dash-only tiles) they could be teleported back once isDashing turns up false.