global objects & Xaudio

For questions about using Classic.

Post » Wed Jan 21, 2009 12:12 am

a few questions on global objects... when i make an Xaudio object global, it only works if i run the entire application (ie. run an individual layout, and it doesn't work.)

-global sprites... they're usually invisible on the next layout. since they aren't fully documented yet, can someone fill me in on exactly how they work?
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Wed Jan 21, 2009 12:31 am

Global sprites shouldn't go invisible - marking them global simply means they don't destroy at the end of the layout, and that they appear in all event sheet editors.

The global XAudio2 thing is a known problem - running a layout won't create it because the object is on the first layout. The best solution I can think of is to have two global variables, 'debug' and 'layout' - have on start of layout on the first layout, if debug = 1, jump to layout global('layout'). Then always preview the entire application, and to preview one layout, set the global variables.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests