Give your walls the solid behaviour. In the bullet behaviour there is also a bounce off solids property. Add some events to trigger things than can happen when a bullet hits a certain wall type i.e spawn another object (explosion sprite) and destroy the bullet or change bullet angle and velocity when bounced off a wall