Hey folks,
I want to add a feature to my game where the player can intentionally "clip" through walls in certain places, possibly by holding the arrow keys against the wall for a while to walk through them, or something like that.
I was hoping to get your ideas on a good way to implement this. As far as I know, there is no way to tell how long a player holds down a specific key while on a certain tile or anything like that. I do have the VisuStella movementCore so I can use regions to trigger events by being in them them etc., but I am not sure how to best add that extra layer of "mess with this spot for a sec and find a secret", if you know what I mean.
I want something where a player can find a hint elsewhere so they know which wall they can "clip" through (ie. be transferred somewhere else) like a kind of secret, but I don't want to just to the boring "click on the right spot to reveal the secret" like Doom or Dark Souls etc.
My best idea so far is to run a parallel event while the player is in a specific region which sets a timer, and when the timer expires it checks to see if the player is still in the region and their direction is correct, and if so, transports them. This main issue with this is the lack of interaction - they just stand there facing the right direction and then something happens, which doesn't feel quite like moving through the wall and could be triggered by accident.
Willing to add any plugins which might help with this.
Thanks for your input!
I want to add a feature to my game where the player can intentionally "clip" through walls in certain places, possibly by holding the arrow keys against the wall for a while to walk through them, or something like that.
I was hoping to get your ideas on a good way to implement this. As far as I know, there is no way to tell how long a player holds down a specific key while on a certain tile or anything like that. I do have the VisuStella movementCore so I can use regions to trigger events by being in them them etc., but I am not sure how to best add that extra layer of "mess with this spot for a sec and find a secret", if you know what I mean.
I want something where a player can find a hint elsewhere so they know which wall they can "clip" through (ie. be transferred somewhere else) like a kind of secret, but I don't want to just to the boring "click on the right spot to reveal the secret" like Doom or Dark Souls etc.
My best idea so far is to run a parallel event while the player is in a specific region which sets a timer, and when the timer expires it checks to see if the player is still in the region and their direction is correct, and if so, transports them. This main issue with this is the lack of interaction - they just stand there facing the right direction and then something happens, which doesn't feel quite like moving through the wall and could be triggered by accident.
Willing to add any plugins which might help with this.
Thanks for your input!