So I'm doing little car game in appinventor.
My problem is that I have parking lot which size isn't the whole screen size. Parking lot is about in center of the screen. I would like to have hitboxes that could stop the car and prevent it to go out of the parking lot. I tried already making a new imagesprite and in the code section I put "when car collided with imagesprite", "set car speed to 0". But that worked only one time. I can now press the gas button again (after the car stopped) and then the car continues going. Blackbar on the left up corner is the hitbox1

Does anybody have any suggestions how could I make hitboxes and prevent the car to get out of the parking lot from the spot where I don't want it to get out.
If you need more specific information please just ask