How to trigger sound when rotation stops?

xyloFUNxyloFUN Member Posts: 1,593
edited November -1 in Working with GS (Mac)
Hey guys,
I am working on my first game and hit a bump!

In the center of the screen is a disk that can be rotated by touching it.
The rotation angle is 45 degrees which means that the disk stops four times.

How could I trigger a sound when the rotation stops?

thanks :)

Comments

  • GamersRejoiceGamersRejoice Member Posts: 817
    I believe you would need to set up a rule that looks something like this...

    When Attribute Self.rotation = (the angle that you want to make the noise could be 0-360)

    play sound.
  • xyloFUNxyloFUN Member Posts: 1,593
    Thanks GamersRejoice! :)

    Also, I would love to place a smaller disk on top of the main one and rotate it without affecting the lower disk. Is this done with "layers"?
  • GamersRejoiceGamersRejoice Member Posts: 817
    I wish there was a way to simply control that based on layers! Lookup overlapping actors in the (+new) section of GameSalad to get some help there.
  • xyloFUNxyloFUN Member Posts: 1,593
    Thanks AGAIN GR, my one and only helper! :)

    A little later, I will see what can be done ... I've spent most of yesterday creating artwork so now I have to make it rotate and do stuff :)
Sign In or Register to comment.