drmop 11 Report post Posted April 6, 2015 Hi, Just assessing PIXI as a potential replacement for the rendering portion of my game engine and have a couple of questions: 1) In my engine I have separate scenes, each scene contains a bunch of stuff, for example, one scene could contain the HUD, another could be game level1, another level 2 etc.. Is it feasible for me to have a separate stage for each of these scenes? Or is it recommended to have only a single stage? 2) Can a stage have a transparent background? 3) I cannot seem to find anything related to sprite layering, is this supported? Thanks Mat Quote Share this post Link to post Share on other sites
Slyders 0 Report post Posted April 6, 2015 Stage can have a transparent background PIXI.autoDetectRenderer(renderWidth, renderHeight, {'transparent':true}); i think its better to have 1 stage with many DisplayObjectContainer .. For sprite layer its just set when you add something to a stage ..Exemple :stage.addChild(object1); layer 1 stage.addChild(object2); layer 2 ..Use DisplayObjectContainer to have many item on 1 layer See the documentation it will help you alot .. im still a new user from pixi but i respond my best Quote Share this post Link to post Share on other sites
drmop 11 Report post Posted April 7, 2015 Thanks for the reply. So basically I can derive my Scene from DisplayObjectContainer or just create an DisplayObjectContainer and add that to the stage? I think PIXI ideally needs some kind of programming guide, at the moment I'm finding reading the source more informative than API reference as its difficult to pick up context from API docs. Quote Share this post Link to post Share on other sites
xerver 286 Report post Posted April 7, 2015 booty5 you should use pixi 3, not v2 if you are just starting out. It can be found on the `dev` branch of the code. The examples and docs for it can be found in the pixijs org: https://github.com/pixijs/examples https://github.com/pixijs/docs Quote Share this post Link to post Share on other sites
drmop 11 Report post Posted April 7, 2015 Thanks, do you guys keep a feature changelist? Are there any major changes between v2 and v3? What I've learnt so far is mainly via online tutorials and from reading through the code. Quote Share this post Link to post Share on other sites
d13 105 Report post Posted April 7, 2015 I think PIXI ideally needs some kind of programming guideThis is very basic but might be a start: https://github.com/kittykatattack/learningPixi 1 drmop reacted to this Quote Share this post Link to post Share on other sites
drmop 11 Report post Posted April 7, 2015 Excellent, cheers Quote Share this post Link to post Share on other sites