Game Development Community

Lock layer position

by Andrea Farid Marsili · in iTorque 2D · 04/25/2011 (1:56 am) · 3 replies

I'm moving my camera but I want to made one layer immovable so that the actor's layer will be always show.
How can I do it?

#1
04/25/2011 (8:16 pm)
either move the layer along or don't use a layer at all and keep the actor outside the layers
#2
04/25/2011 (8:28 pm)
You can place a second sceneWindow in your GuiCanvas. When you move your camera the whole sceneWindow is moved, so by having a second one, objects in this window wont move.

Search around for this and you'll definitely find the post you're looking for.
#3
04/25/2011 (11:35 pm)
I haven't found the topic you're talking about but i think that I have to modify mainScreen.gui adding a new t2dSceneWindow but after that how can I ad my object to the second sceneWindow?

PS: How can I move my layer? Or how can I keep the actor outside of the layer?