Center Actor
daverenner
Member Posts: 133
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