Rule for "Out of Camera" & "Out of scene"

DoManDoMan Member Posts: 102
edited November -1 in Working with GS (Mac)
A rule condition that activates when an actor is out of the cameras view. As i'm building my game i can think of hundreds of uses to speed up building and make games run faster, and makes it far easier when dealing with scenes bigger than the cameras view. PLEASE add this feature! it would really make everything easier!

Comments

  • alkexalkex Member Posts: 38
    Hi DoMan,

    You can do this by comparing your actor's position to the currentscene.camera.origin attribute to determine if it's off screen.

    for example:
    if
    my.position.x > currentScene.cameraOrigin.x and
    if (My.position.x - currentScene.cameraOrigin.x) > 480 then I'm off camera

    Note that you have to double click the actor's instance within the scene to access these attributes. It won't work within the prototype.

    Hope this helps :)
Sign In or Register to comment.