Change Images

Hello! So I've been doing my research and learning on what I got to do to make games and such, but there is one thing I can't figure out.

I'm trying to make image A turn into Image B which can then turn into Image C and then back to Image A and so on as a loop by click of mouse (So I can test it) and then change it into Touch so that it can be for App games.

The only thing is, I can only get from A to B and then nothing. It just stays at B. I can't find anything to make this happen D:

Comments

  • rcalvo924rcalvo924 Member Posts: 7

    I totally posted this in the wrong forum..

  • SocksSocks London, UK.Member Posts: 12,822

    @rcalvo924 said:
    I'm trying to make image A turn into Image B which can then turn into Image C and then back to Image A and so on as a loop by click of mouse (So I can test it) and then change it into Touch so that it can be for App games.

    A quick and easy way would be to name your images as 0, 1, 2, then use:

    Rule: When Touch is pressed
    --Change self.image to (self.image+1)%3

  • SocksSocks London, UK.Member Posts: 12,822

    Example file attached:

  • rcalvo924rcalvo924 Member Posts: 7

    Thanks!

Sign In or Register to comment.