Putting MovieClips in layers

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

Moderators: Lapo, Bax

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

Putting MovieClips in layers

Post by Nigey »

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: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Putting MovieClips in layers

Post by Bax »

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
Post Reply