Can I have a filename set as a variable? Here is what I am trying to do:
on create actor
- Code: Select all
variable="data\filename.wav";
on collision
- Code: Select all
PlaySound2((variable), 1, 1, 0);
but it doesn't seem to work
variable="data\filename.wav";PlaySound2((variable), 1, 1, 0);strcpy(variable, "data\filename.wav");//PlaySound2("data\filename.wav", 1, 1, 0);Users browsing this forum: No registered users and 1 guest