Well a basic way is to do this
First choose a colour for your wall, eg: blue.
Then draw all your walls in blue.
Then with the movement scripts use,
Green flag,
Forever,
If key "Right arrow" pressed,
Change X by "10"
If touching colour "Colour of wall"
Change X by "-10"
Do this for the other 3 directions but keep in mind up and down needs Y instead of X
Offline