hi
i am trying iSpritekit for the last few days and i really like it.
Although i have some questions.
1, i am playing audio on my game with a SKaction and i wanted to know if this is the right way to play audio files (background music + sound effects)
2, when i add a SKspritenode to my SKscene i noticed that the "ToucheBegan" event of the SKspritenode is not triggered because the "ToucheBegan" of Skscene is triggered. so my question is, is this the normal behavior? if the parent has a "ToucheBegan" event and the child also will always the parent event triggered?? i would like to use an SKspritenode as a button and want to know when someone clicks on it.
what i do now to solve the problem is i check the x/y of the aTouch of the parent and if it is in a specific area i know that the button was clicked but it would be easier to get directly the touch of the button.
those are my questions for now (more will follow soon )
thank you, ilan
i am trying iSpritekit for the last few days and i really like it.
Although i have some questions.
1, i am playing audio on my game with a SKaction and i wanted to know if this is the right way to play audio files (background music + sound effects)
2, when i add a SKspritenode to my SKscene i noticed that the "ToucheBegan" event of the SKspritenode is not triggered because the "ToucheBegan" of Skscene is triggered. so my question is, is this the normal behavior? if the parent has a "ToucheBegan" event and the child also will always the parent event triggered?? i would like to use an SKspritenode as a button and want to know when someone clicks on it.
what i do now to solve the problem is i check the x/y of the aTouch of the parent and if it is in a specific area i know that the button was clicked but it would be easier to get directly the touch of the button.
those are my questions for now (more will follow soon )
thank you, ilan