How to change self.image for another image?

LordTarantorLordTarantor Member, PRO Posts: 890

Hi everybody'
I have an actor which will be changing its image every second between 2 images.
I created a timer: every 1 second. Inside I made a rule:
If self.image is ?????????????

otherwise:
Chnage image to (the other one.

am I close or totally far away???
Can somebody help, Please!

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited April 2014

    Hi @‌LordTarantor

    Try these Rules:

    Rule: When attribute self.Image is FirstImage
    Timer After 1 second Change Image SecondImage
    
    Rule: When attribute self.Image is SecondImage
    Timer After 1 second Change Image FirstImage
    

    I'll upload a little test file in a minute...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Here's a test file for you: you'll see it's very straightforward:

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • LordTarantorLordTarantor Member, PRO Posts: 890

    Sorry gyroscope, I wrote the question and left to work and I just got home.
    This works great, pretty simple!
    I don't know why I was complicating my life...
    Thanks a lot

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    No worries and you're welcome. :smile:

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.