Center Actor

daverennerdaverenner Member Posts: 133
edited November -1 in Working with GS (Mac)
My scene is 2000x2000. The camera is 480x320. I want to spawn an actor in the center of the camera when you click a button. I got it to work kinda, but it stops working after you scroll over a bit. The idea is you click the button, it flips a attribute of move to false (have rules in place so actor cannot move while the other actor is spawned.) The actor is visible until you click on it, then it destroys itself and flips move back to true. What kind of mind-bending math do i need? I constrain my heros X and Y and spawn the new actor to hero.X+150 and hero.Y+75. It works until i leave the original camera view (when i scroll over). Any ideas?

Comments

  • dotsonj23dotsonj23 Member Posts: 316
    Whatever actors you want to stay with the camera area (whether visible or not) when you scroll need to be placed in a non-scrollable layer.
Sign In or Register to comment.