How do I Play Audio by name through instance variable.

Get help using Construct 2

Post » Mon Jul 24, 2017 4:30 am

Audio "play by name" not working if value provided through instance variable. It does work properly if I pass "cat_sound" in Audio file name input box. But instead if I use an instance variable of Cat sprite(Cat.sound) then it doesn't play.
B
8
Posts: 16
Reputation: 332

Post » Mon Jul 24, 2017 4:48 am

Sorry guys its mine mistake....I was storing variable value in double quotes(Cat.sound = "cat_sound"). After removing " ", its working fine.
B
8
Posts: 16
Reputation: 332


Return to How do I....?

Who is online

Users browsing this forum: KTML5 and 22 guests