I am trying to make a piano .... but have sound issues

xyloFUNxyloFUN Member Posts: 1,593
edited November -1 in Working with GS (Mac)
Hi,
for my first app (i'm a music teacher) I am trying to make a little toy piano. The issue i am having is that i can play a sound when i click on the actor(s) but the sound does not stop although i have made a rule to stop the sound on mouse up.

Anyone here making or specializing on sound games? I could use a few pointers :)

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    uncheck run to completion.
  • xyloFUNxyloFUN Member Posts: 1,593
    Thanks JohnP,
    i have to look into that but something is not right ....

    actually, now i have a new problem ... i just googled but found no tut on attaching a sound to an actor. I know how to attach it, that is easy but there is no "behavior" for "stop sound! Just stop music .... that is what did not work.
  • xyloFUNxyloFUN Member Posts: 1,593
    I spoke too early! YOU (John) were 100% right ... it works, YAY! LOL
  • xyloFUNxyloFUN Member Posts: 1,593
    LAst hurdle for tonight!

    When I code my apps with Flash, everything is pretty logical and mistakes become quickly obvious including how to fix stuff ...

    I have added 8 actors to the scene, each actor has a different sound assigned to it but once I add them into the game, each actor triggers ALL sounds which is .... well, ... weird.

    Anyway to fix this or is GS not suitable for educational software? For a game, one sound track is usually fine but I winder how to restrict each actor to one monophonic sound?

    This is probably too advanced to ask in here as not many are into instrument stuff but, you never know?

    thanks :)

    Actually, I just noticed that clicking in the background triggers the sound :( WEIRD!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Don't use mouse down. With mouse down it doesn't matter where the mouse is, any click while make the rule true. You need to either use mouse down AND inside (not recommended) or use when touch is pressed (recommended as you do not need to add the inside part for some reason and it is automatically translated to mouse for preview and web with no extra code).

    that should do it
  • xyloFUNxyloFUN Member Posts: 1,593
    scitunes,
    thanks, that makes sense as "touch" will be the only way to use the interface ... the only bummer is that i still am not able to install the gs-viewer so that I can test locally. But, every day a few more things make sense!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    xyloFUN said:
    scitunes,
    thanks, that makes sense as "touch" will be the only way to use the interface ... the only bummer is that i still am not able to install the gs-viewer so that I can test locally. But, every day a few more things make sense!

    Try using touch and test with the mouse. If it works with the mouse it will work on the device. GS automatically translates touch for the mouse when you are testing it in the creator preview.
  • xyloFUNxyloFUN Member Posts: 1,593
    wow, i did not know that!

    thanks for adding it, THAT helps me a lot because it will be a while until i get the viewer going ....

    again, I am very grateful :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    your welcome :)
Sign In or Register to comment.