Rotating a scene with an actor

Hello! I'm new to Gamesalad. Im looking for a way to make the scene rotate with the actor. So say the actor rotates 90 degrees, the scene will as well. Is there a way to do this? Thanks

Comments

  • -Timo--Timo- Member Posts: 2,313
    edited October 2013
    Contrain attribute camera.rotation to -self.rotation
  • MantoManto Member Posts: 796
    Use the Camera Rotation attribute to rotate the camera. See example below.
  • macmashermacmasher Member Posts: 31

    Constrain scene.camera.rotation to game.rotationActor

    Do what?

  • macmashermacmasher Member Posts: 31
    @Manto1 Wheres the attribute?
  • MantoManto Member Posts: 796
    @macmasher is this what you're trying to achieve?

  • -Timo--Timo- Member Posts: 2,313
    edited October 2013
    First unlock the actor and contrain camera.rotation to -self.rotation
  • macmashermacmasher Member Posts: 31
    @Manto1 Im trying to have the camera rotate with the actor

  • -Timo--Timo- Member Posts: 2,313
    Then do what I said?
  • macmashermacmasher Member Posts: 31
    How do I constrain the camera rotation? Where do I find it?
  • -Timo--Timo- Member Posts: 2,313
    I am not sure as I am not on a pc to check it but first you have to edit one actor so not the prototype. I think its scene.camera.rotation
  • MantoManto Member Posts: 796
    @macmasher Unlock the actor and add:

    Constrain attribute scene.Camera.Rotation to -self.rotation

    image
  • -Timo--Timo- Member Posts: 2,313
    Thats the word I was looking for ;) unlock. Thanks @Manto1 :D
  • macmashermacmasher Member Posts: 31
    Ok so I have 2 constrain attributes. On one it has: game.rotationActor then self.rotation

    My second is: scene.Camera.Rotation, -self.rotation (I also tried game.rotatoinActor)

    What am I missing?
  • MantoManto Member Posts: 796
    edited October 2013
    If you're doing it my way, you'll just need to place that one constrain attribute rule into your unlocked Player/White Square actor. See my previous comment.
  • -Timo--Timo- Member Posts: 2,313
    edited October 2013
    Place an actor with display text game.rotationActor and in the actor a display text self.rotation to check if its working. If not then you did something wrong.
    Manto placed an image how to do it. Just do that and it will work.
  • macmashermacmasher Member Posts: 31
    Hm I must be doing something wrong then. I have 1 constrain the: scene.Camera.Rotation To the -self.Rotation on the unlocked white square. Is there something I'm doing wrong?
  • macmashermacmasher Member Posts: 31
    I got it to work! Thanks for your help guys you are awesome. @Manto1 @Timelapre1998
Sign In or Register to comment.