Maybe using a switch value ?
If collision XXX And MySwitch=0
Switch=1
endif
etc like that you can test only one time if the wall is
collided.
If collision XXX And MySwitch=0
Switch=1
endif
etc like that you can test only one time if the wall is
collided.