#Potential fix to the plethora of entering wall issues

1 messages · Page 1 of 1 (latest)

young yoke
#

Run code that if the player is stuck in any wall, push them out into the nearest empty space

hollow finch
#

if it only were that simple 🙏 😭

young yoke
#

I was thinking the way it would work is going clockwise checking every direction they could be spit in, starting with the direction you last moved, then if you aren't pushed out, repeating again with a pixel more checked in each direction

#

rinse repeat until the player is no longer in the wall

strange abyss
#

Or void out and spit back to the entrance of the room

hollow finch
#

not possible in multiplayer

strange abyss
#

<-- forgets about that

hollow finch
#

haha

strange abyss
#

Everyone voids out
Thermonuclear wall clip!

#

Wait
Couldn't you then just spit them onto another player?

hollow finch
#

no that would lead to many softlocks and skips

strange abyss
#

Ah, true
Man fixing issues is harder than I thought

hollow finch
#

haha welcome to my life

young yoke
#

Just sayin, but my solution is what worked for my game

hollow finch
#

this solution wont work well in QM since you would still be pushed into a solid object, there is no way for the player to escape here

young yoke
#

... which is a single player platformer metroidvania made in GMS2, but that couldn't possibly have any meaningful differences

hollow finch
#

lol

#

most likely what i will do is that if you get squashed, you will be reset to your last safe position

#

like when you fall into a hole

young yoke
#

Ya

hollow finch
#

thats the safest approach

strange abyss
hollow finch
#

lol

strange abyss
#

When you get embedded into the wall, it's only one tile right? So you wouldn't have to figure out a long backtrack to get navigable ground?

hollow finch
#

im already keeping track of the last safe position

#

and no its not necessarily just one tile unfortunately

#

i have to keep a history of the last N safe positions

#

so quick test, but this is kinda the idea

#

i would prefer to stylize it more, maybe with a goofy mario-like squash animation

strange abyss
hollow finch
strange abyss
#

Squimsh!

hollow finch
#

yea haha

mint olive
#

Have them explode into confetti

strange abyss
#

squimsh
Rock particles
Confetti detonation
Have a random effect each time, confuse the player for getting squished!

mint olive
#

They can squish and then explode into confetti

hot bear
#

Just pull a spelunky and have it instantly kill the player