How do I make "vectorToAngle(..,..)" command work on scrollable scenes?

LavitzBrLavitzBr Member Posts: 23
edited July 2012 in Working with GS (Mac)
How do I make "vectorToAngle(self.position.x-game.Mouse.position.x, self.position.y-game.Mouse.position.y)" work on scrollable scenes?
Thanks.

Best Answers

  • lukey5227lukey5227 Posts: 111
    Accepted Answer
    It should work fine on a scrollable scene. Whats the issue?
  • lukey5227lukey5227 Posts: 111
    Accepted Answer
    Open the Background Layer Section. This should show you all your actors (unless you have sorted otherwise). You can uncheck the main "Background" checkmark and start checking your background without changing the actor using VectorToAngle.
  • lukey5227lukey5227 Posts: 111
    Accepted Answer
    On background, uncheck it and check sky. Now, all of the background layer group will be unchecked except the ones checked: sky. Why do you need to move player to the HUD anyway? It shouldn't be there.
  • lukey5227lukey5227 Posts: 111
    Accepted Answer
    You see the word "Background" with a checkmark next to it right? Uncheck that. Now click on the arrow on the left side of "Background". That should show you all your actors. Check your Sky actor.

Answers

  • LavitzBrLavitzBr Member Posts: 23
    edited July 2012
    Before I set the background to scrollable, the actor went where I touched. Now, when I set the background to scrollable, the actor just move down and does not obey when I click on any place of the screen except when I get to the end of the scene and the background stops scrolling.
    Do you get it?
  • LavitzBrLavitzBr Member Posts: 23
    Open the Background Layer Section. This should show you all your actors (unless you have sorted otherwise). You can uncheck the main "Background" checkmark and start checking your background without changing the actor using VectorToAngle.
    I have my actors "sky" and "player" on a scrollable background. I tried to make the vectorToAngle works moving the "player" to the HUD, but I've received no good results: the player disappeared.

  • LavitzBrLavitzBr Member Posts: 23
    What do you mean by "check sky"? Where do I do that?
  • LavitzBrLavitzBr Member Posts: 23
    I'm gonna try the advices. I'll report here soon.
  • LavitzBrLavitzBr Member Posts: 23
    edited July 2012
    I'm gonna try the advices. I'll report here soon.
    Bug on the Portrait mode: the current scene attributes are not displayed.
Sign In or Register to comment.