Learn Create Your Own Split Screen

Next Page

A better solution is logic that goes:

      Don't let the hero move if that move would result in a touch

So before we do the actual move, we'd need to take a little peek at what the result of the move would be, then decide whether to move or not.

Still too hard.

But what about this:

      If the move results in a touch, then undo the move

Can we do that?

Sure can.