Posted By: gamers
Please Help about sound system - 07/05/14 20:31
Hi, I want to play a sound file when I show the marker to camera on AckR, Augmented Reality sample...
I want to add "4.wav" to this code, please help...
Sorry for my bad English
I want to add "4.wav" to this code, please help...
Code:
void testact() { vec_scale(my.scale_x, 1); my.skill21 = random(100); while(1) { set(my, INVISIBLE); if(AckR_getMarker(my.skill95, my.x, my.pan, FALSE) == 0) { // my.pan=(my.pan+time_step*2+random(1))%360; reset(my, INVISIBLE); } my.skill21 += time_step*10; my.skill21 = cycle(my.skill21, 0, 100); ent_animate(my, "walk", my.skill21, ANM_CYCLE); wait(1); } }
Sorry for my bad English