I want to have an object stay on one part of the frame and stay in that one spot while the frame is scrolling. How do i do this?
Printable View
I want to have an object stay on one part of the frame and stay in that one spot while the frame is scrolling. How do i do this?
You mean like a HUD (lives/ammo etc that are on the screen not the ground).
Either make a layer with 0s for the scrolling coefficients and put your object in that, or untick "follow playfield" in the object's properties.
Or you could try it this way -
Simply create an event which is along the lines of:
ALWAYS:
Set X Position of Object to X Left Frame + "x"
Set Y Position of Object to Y Top Frame + "x"
"x" resembles a number to be entered by yourself. The higher the number, the further towards the right hand edge/bottom the object will be placed.
Yeah, but that way tends to lag behind by a frame AND requires events...
Layers and coefficients is your best bet. That way you don't have the bother of making sure your objects aren't always at the top, AND you can use backdrop objects as part of the HUD. Just make sure any counters in your HUD (or whatever) aren't set to "Set to Background".