What do you want to happen when the cat collides with maze blocks? Right now the cat is moved to the center of the maze. Should it be the start position or do you want you to simply bounce off the blocks?
If you want to move the character to a location it's easier for GE to just set the x and y then to use a moveto. The cat starts at 566, -576
So to move it back you would put this in the cat's collision script instead:
- Code: Select all
x = 566
y = -576
Making the blocks uncrossable and/or bouncing back the player is a bit more complex and I'd want to know if the player needs to bounce back or just stop moving.
What sort of game are you looking to make? Do you want enemies in the maze or traps or puzzles? Do you want items to find and use? I'm happy to offer ideas but I'm not sure what sort of game this is besides a maze runner.