GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

matching colors

gilamonstergilamonster Posts: 31Member
For my game, I will be using a triangle grouping and each triangle will not be only one color but three different colors alternating via an animation graphic.

How do I set it up to have the game recognize when some colors match?

Comments

  • ValanValan Posts: 405Member
    Try to set the values in the Color property to change colors. This can be tested quickly and uses less memory.
  • gilamonstergilamonster Posts: 31Member
    thanks valan ~

    Is is possible to do it with an image I have made? where the colors are set in the image? I was planning on making an animated image with the colors alternating and then when the colors match have a touch rule or attribute for something to happen.
    I hope i make sense, I am new to this.
  • ValanValan Posts: 405Member
    If your image is greyscale you can still use it and alter the colours in GS to make them animated. You can use the interpolated or a Timer with Change Attribute behavior inside.

    You can then make a Rule something like

    When
    Attribute Self.color.green = 1

    Behaviour?
This discussion has been closed.