Making positional sounds on another layer

For questions about using Classic.

Post » Wed Jun 03, 2009 9:46 pm

I'm making a scrolling game in 320x240. Unfortunately, the XAudio playing sound from object feature doesn't work quite well since it's trying to translate from the coordinates of the non-scrolled, big layer rather than the local screen layer (where I put the hud in). This causes my sounds to be quiet and positioned incorrectly with the screen.
Is there a way to playback sound effects from their correct position relative to the scrolling center?
B
3
S
1
G
3
Posts: 48
Reputation: 1,121

Post » Wed Jun 03, 2009 10:32 pm

You need to set the listener object. It's under positioned sounds. Just set the listener object to your character and all sounds should be heard relative to that object's position.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Jun 03, 2009 11:03 pm

ah thanks, I never knew that!
B
3
S
1
G
3
Posts: 48
Reputation: 1,121

Post » Wed Jun 03, 2009 11:26 pm

Your welcome. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests