sound question
artfish
Member, PRO Posts: 369
Hey everybody. Should be a simple answer here, but for some reason I'm struggling.
I have an accelerometer minigame that opens a door in my game. I want to have my "ball is rolling" sound play while actor is in motion.
when attribute-?- is greater than ? - play sound.
Anyone?
Thanks everybody!
Eric
I have an accelerometer minigame that opens a door in my game. I want to have my "ball is rolling" sound play while actor is in motion.
when attribute-?- is greater than ? - play sound.
Anyone?
Thanks everybody!
Eric
Best Answer
-
JohnPapiomitis Posts: 6,256take the self.position.x out and instead constrain self.motion.linear x. You might want to change the *17 to something higher like *400 or something like that.
See how that movement is, cause then the sound rules will work.
Answers
When self motion linear x does not equal 0
When self motion linear y does not equal 0
-play sound
Rule
When any conditions are valid
attribute:self motion linear velocity Y does not equal 0 and another condition, attribute:self motion linear velocity x does not equal 0
-playsound.
hmm...
Thanks
Eric
Heres a demo: http://www.mediafire.com/?0dw8nlidl867wvn
I really appreciate you taking time to help. Are there any other factors that could be preventing it from playing? I have other sounds in the scene that play fine when the actor overlaps them.
I've also tried changing the sound effect as well. nothing.
Eric
Constrain self.positionx to self.Position.X -( game.Accelerometer.Y *17)
Thanks.
Thanks Master @JohnPapiomitis
Thanks for your help, yet again!
'till next time
Eric