constrain object to camera movement
http://arcade.gamesalad.com/g/85328
plugging ahead on my game, got push blocks and pressure switches working (with some bugs)
and i have the gravity meter to show how long you can flip grav, and i also have camera constrained to my actor to follow him.
but prob is, when the character moves away, he leaves the grav meter behind, as its just stuck in the scen, and does not move with camera.
i thought about constraining it to the actor, but since the camera does not move exactly with the character (it only moves when he aproaches the edge of the camera box.) this would not work, i want the meter to be just stuck in the lower left of the screen no mater where the char and camera goes,
i also thought of constraining it to camera, but i did not see any camera info in the atributes window,
any thoughts? thanks!
plugging ahead on my game, got push blocks and pressure switches working (with some bugs)
and i have the gravity meter to show how long you can flip grav, and i also have camera constrained to my actor to follow him.
but prob is, when the character moves away, he leaves the grav meter behind, as its just stuck in the scen, and does not move with camera.
i thought about constraining it to the actor, but since the camera does not move exactly with the character (it only moves when he aproaches the edge of the camera box.) this would not work, i want the meter to be just stuck in the lower left of the screen no mater where the char and camera goes,
i also thought of constraining it to camera, but i did not see any camera info in the atributes window,
any thoughts? thanks!
Best Answer
-
MotherHoose Posts: 2,456
put the grey area in a non-scrollable layer
Scene > Layers > [+] for a new one … uncheck scrollable
double click to change name (usually HUD … heads-up-display)
things you want to always display … without regard to the camera
in first area of scene dragIn the gravityMeterActor … place it in the lowerLeft of scene
make sure it is in the HUD layer (un-scrollable)
for design purposes… remember the top layer in the scene list if highlighted
will be where actors added to screen are placed … and that can cause some problems …
so have a new layer above it called active … or highlight another layer
the HUD layer has to be above the background layer or things will not show when covered with BG objectsMH
Answers
i'm off tomorrow an my girl works so i'll be trying to get a lot of my core features done