Change Image Help

Sorry if this question seems novice but I can't figure it out. In my game I have an information button that when you click the icon it'll change image to the information. How would I then have it change back to the icon when I have I hit close from the second image? I guess what I'm trying to say is after I change image 1 to image 2. How do I change it back to image 1?

Right now I have Rule > When touch is pressed change image1 to image 2.

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782

    Too little information @salino2835

    Are you just changing the image? Where does the user hit "close"?

    If it is just by tapping on the image2 then do the following:

    Rule: If touch is pressed
             Rule: If self.image = image1
                      Change image to image2
             Otherwise
                      Change image to image1
             End rule
    End rule
    
  • salino2835salino2835 Member, PRO Posts: 76

    Yupp thats what I was looking for thank you

Sign In or Register to comment.