Im currently working on a project, and i would to know how to set barriers on places that the sprite should not be able to cross. For instance, a house, even if i did make it a sprite, my character sprite would still trample over the house as if it's a door mat. please help.
Offline
In one of my games I made I have barriers. They are just dark grey draw on the background. I used this script for my person sprite one.
When green flag clicked
Forever if sensing color dark grey
Turn 180 degrees move ten steps.
Whenever sprite one hit grey he turned around and took 10 steps. It worked well.
Offline