Problem Description
I originally posted this in the "How do I?" section, but after a little more experimentation, I think I was encountering a bug. It appears that when you play audio "at an object" it uses the object's position in the layout, rather than the object's position on the screen, to determine how the audio sounds. This means that an object at the center of the screen in the left quarter of a large (in my case, 3200 pixels) layout will sound considerably different than the same object playing the same sound in the right quarter of the layout.
Attach a Capx
https://github.com/Llorean/Femlink/tree/master/ (I don't know how to attach files in this forum)
Description of Capx
It's my entire game code, relevant audio code is in the Link event sheet.
Steps to Reproduce Bug
You can see what's happening just by wandering back and forth and stabbing with the sword (Z key). To see a sharp difference go through the door (hit Up) and you'll be on a different map where you're at the top of the layout instead of the bottom, and sounds are considerably louder.
Observed Result
Audio changes position even when sprite is in the same on-screen position, seeming to change based on where it is relative to the center of the layout.
Expected Result
Audio changes position based on where it is relative to the center of the screen.
Affected Browsers
- Chrome: (YES)
- FireFox: (Unknown)
- Internet Explorer: (Unknown)
Operating System and Service Pack
Windows 8.1, fully updated as of the time of this post.
Construct 2 Version ID
Release 200