Sonic Disappears When Walking in Your Game Maker Project

TIME : 2016-01-08
Sonic Disappears When Walking in Your Game Maker Project

That sounds like a failed sprite change, or Sonic being drawn somewhere off-screen.

Two things to check

1. Position. Run the game in debug mode and watch Sonic's x value. If you are using something like x+=3, make sure it is relative to his current position rather than an absolute assignment, which would snap him to one coordinate and keep him there.

2. Sprite index. A sprite change pointing at a non-existent or empty sub-image makes an object vanish the moment the animation advances. Check that every frame the walk cycle touches actually exists.

Nine times out of ten it is one of those two.