If you mean in a platformer game, use hit sensors (usually an invisble sprite at the side of the main character).
When the hitsensor touches the wall it changes a specific variable to true.
In the main character you have to make a walking script like this.
When Green Flag Clicked:
Forever If (Right Arrow Key) and (RightSensor = true):
Change X by 5

Offline
Starpally wrote:
Ok but the game i am trying to make it is amaze type of game and i want it so the sprite can go pass the wall. How would i do that? plz let me know how i would do that if u can.
![]()
Use the scripts I wrote

Offline