Dynamically Change Scene Size

NYPNYP Member Posts: 12
Hi, just wondering, is it possible to dynamically change Scene Size during runtime? I can change the Scene.Size.Height attribute fine but it seems to have no effect on the size of the scene. Failing that is there any way of limiting the movement of a camera that is tracking a character? I am guessing it's something to do with playing the tracking area but finding it a but hard to get my head round it. Thanks for any help

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2014
    This might not be what you are after but . . . .

    You can dynamically change the visible scene size at runtime by zooming the camera in (making the camera size smaller) or - if your scene is bigger than the screen size - zooming the camera out (making the camera size larger).

    For the camera tracking a character question - the tighter the tracking area is around the character the more closely it will track that character.

    image
  • NYPNYP Member Posts: 12
    Thanks @socks I'll give that a go

    Is it possible to have a camera stop tracking a character and then start up again? As in track a character while attribute is true then stop if attribute is false?
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2014
    Thanks @socks I'll give that a go

    Is it possible to have a camera stop tracking a character and then start up again? As in track a character while attribute is true then stop if attribute is false?
    I guess so (but I've never actually tried it) . . .

    Two actors, identical in every way except actor A controls the camera, while actor B does not.

    Starting with actor A in the scene:

    When the attribute is switched to false, actor A spawns actor B and destroys itself.
    When the attribute is switched to true, actor B spawns actor A and destroys itself.


    Or maybe place the control camera behaviour into a rule that only operates when the attribute is true.
Sign In or Register to comment.