Putting MovieClips in layers

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Nigey
Posts: 35
Joined: 17 Dec 2014, 21:55

Putting MovieClips in layers

Postby Nigey » 18 Dec 2014, 13:39

Hi Guys,

I have objects which are part of the user interface to the game, however they're designed to actually be 'in' the game. Meaning I want to have them underneath some objects and above others. Is there a way to get game objects interact with the layering system in OpenSpace without actually being an object in OpenSpace itself?

Many Thanks,
Nigel
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Putting MovieClips in layers

Postby Bax » 22 Dec 2014, 09:57

The only solution that comes to my mind is that you have a container Tile with a special Skin in it: at runtime, after the map is loaded, you retrieve that skin object (use IOpenSpaceAPI.getSkinByName method) and add your object to its display list.
Makes sense?
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 7 guests