on 17-05-2012 03:20 AM
Sorry about all the question. Anyhow I have an issue about forground and backgrounds. There really isnt any commentation about this so if anyone could help me out that would be great.
I have created a character and I have just recently implemented a scene into the foreground. I will later create a background layer.
Anyhow, the character is set behind the foreground and Im not sure how to fix this. Heres an image of what is going on. Also what is the limit to how many layers can there be in total?
Thanks!

Come join The Freenode IRC at Channel #pss-dev!
I am merely a graphics designer who wants to program, go figure.
Solved! Go to Solution.
17-05-2012 04:39 AM - edited 17-05-2012 04:44 AM
Nvm got it working. Thanks to Telostia (telos157)in the IRC.
Just re-arange the layers in order as so. Where World is the main character and monsters. Where the top of the list is the layers furthest from the camera, and the layers on the bottom of the list, in this case Curtains, would be to the front of the camera.
Scene.AddChild(Background);
// BEFORE -> Scene.AddChild(World);
Scene.AddChild(EffectsLayer);
Scene.AddChild(Foreground);
Scene.AddChild(Interface);
Scene.AddChild(World); // Character Sprites <= After
Scene.AddChild(GameObjects);
Scene.AddChild(Curtains);
Come join The Freenode IRC at Channel #pss-dev!
I am merely a graphics designer who wants to program, go figure.
on 17-05-2012 04:48 AM
Scene.AddChild(node, order) will let you set this. Check the docs for a detailed description of how the order works.
on 17-05-2012 05:24 AM
I knew there was one with a parameter! :\
Uhm where exactly are the docs? I cant find it.
Come join The Freenode IRC at Channel #pss-dev!
I am merely a graphics designer who wants to program, go figure.
17-05-2012 08:53 AM - edited 17-05-2012 08:54 AM
Documentation can be found here:
Open Windows Start Menu
Goto:
Ps Suite | Documents | SDK Documents (English)
It wil start your webbrowser to show local documentation.
Allow blocked content in order to easily search (in upper right corner) for classes, methods etc. like for example the method AddChild.
Quite handy ... I use it regularly when searching for something I would like to use or need.
17-05-2012 07:37 PM - edited 17-05-2012 07:38 PM
How would I make a layer that mimics the platform ground? So lets say if there was a hole, the player would fall through. Or if there was a layer above then the player could jump up onto that platform layer?
Something like some sort of collosion, so if player collides with the sprite layer, he will stay on top..? Not sure how to word it.
Come join The Freenode IRC at Channel #pss-dev!
I am merely a graphics designer who wants to program, go figure.
PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.
フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと
PSM DevPortalを一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870