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
33
S
5
G
8
Posts: 1,210
Reputation: 7,046

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
382
S
223
G
86
Posts: 23,997
Reputation: 189,771


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: UlisesFreitas and 2 guests