Issue With Camera Following (Drawer ORBZAMPLE)

robert.mccarthyrobert.mccarthy Member Posts: 165
edited November -1 in Working with GS (Mac)
Hi All,

I have been using the 'Drawer ORBZAMPLE' example in GS. I have made it portrait and much taller (1000 high).

Now when I set the camera to follow the ball as it bounces up, I find that the further up it bounces, the more 'lower' from the mouse that the line draws.

Does anyone have any idea why this would be.

When the ball is bouncing in the initial scene, when I draw with the mouse it places the lines in the correct place. As soon as the ball bounces out of the initial screen, the lines end up drawing a lot lower than where the mouse is drawing them.

Any and All help appreciated.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    you need to unlock the pen actor. Then where it says constrain to touch.1x (or it may say mouseX) you need to change it to "game.touch.1.X+currentscene.camera.origin.x" and change game.touch.1.Y to "game.touch1.Y+currentscene.camera.origin.Y"

    that will fix it.
  • robert.mccarthyrobert.mccarthy Member Posts: 165
    Hi (both scitunes and tshirtbooth),

    Thanks for the help but I cannot get this working. Any further help would be appreciated.

    Cheers
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    you just need to look in all of the line drawing code. both the pen and the segments. then look for anything that references the mouse position or touch position. add the camera offset as I explained above and use parentheses around it. check all the otherwise sections.
  • robert.mccarthyrobert.mccarthy Member Posts: 165
    I have been through both the pen and the segments, and changed what you suggested, and it changes something but not everything correct.

    It seems that the start position is in the correct position, but the end position is still at the bottom. This means I end up with vertical lines instead of the lines I draw.
  • dagsendagsen Member, PRO Posts: 27
    I have a problem With camera Control.
    I can not get 2 (or more) actors to follow the camera,
    but i can with one.
    what should I do? :D
    please hælp me :D :D
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    relax. youve bumped 5 old posts in the past 2 minutes asking the same exact question
  • dagsendagsen Member, PRO Posts: 27
    but can you answer??
Sign In or Register to comment.