I want to make my person step on a tile and fade to black then teleport them. when I do the code, it instead only triggers afte rthe player overlapped then leaves that tile.
If you post the link someone can take a look at it
Please send your code! I have never had this issue before, so it’s most likely an issue with your code.
This is because at the start of the fade function, it sets the current palette to that first one over and over again, as well as canceling any other fade effects that are happening, so basically it is repeatedly restarting the fade effect. You’ll have to use a variable to keep track or a long Pause block after.
The issue is that the “overlaps tile” event happens every frame that the condition is true, so the fade constantly resets. use this extension to activate it at the start of the overlap only
It seems that your problem is that it is repeatedly trying to call the fade, and with each call it restarts the fade. For example, if you are on the tile, step off, and then step back on, it will stop fading when you step on.
To fix this, you just need to assign a variable in an if statement so that it can only be called once.
I think i did a bad job of explaining this so I also edited the code for you.
Here you go: