I really need to know how to stop my skater image descending off the visable screen. how do i stop the += assignment for the y axis when my picture reaches a certain coordinate?
Inside your operator you validate that modifying your 'y' will not put you off the screen, if this is satisfied you let the += do it's work and return *this as you have been doing. If the validation fails do not modify 'y' and return *this.