Proper way to offset camera?

machinegunkellymachinegunkelly Member Posts: 56
edited June 2012 in Working with GS (Mac)
I have an actor that needs to be further back than the center of the screen, ideally 100px or so from the left side.

I have created a camera anchor actor and set that actor to control the camera.
I have the anchors position as an attribute, and my actor is offset from the anchor by calling the placement attribute - 300PX

I've read this is the way to do it, but now my animation is choppy as all heck :( and really, the results are unusable....

is there a better way to do this?

Best Answer

  • ORBZORBZ Posts: 1,304
    Accepted Answer
    Pretty sure you can just download the project inside the creator itself.

Answers

  • machinegunkellymachinegunkelly Member Posts: 56
    Well a bit more research and I've found a few tips, but nothing is removing this jitter...

    It's 100% caused by the offset actor, because as soon as I change the constraint to the camera offset actor, the jitter is gone.

    I've read I can constrain to the camera, but that means creating a new instance for each of my FIFTY levels, and it's not practical to do that at all... so I refuse to.

    Is there anyone that has a hint or two for me to straighten this camera issue out ? it seems to be a well documented bug, with many just lost as I am....
  • machinegunkellymachinegunkelly Member Posts: 56
    Well looks like I'll have to suck it up, and create 50 instances of my character...

    This is a complete drag :(
    I mean it animates smooth now, but it's unreasonable IMO to have to unlock, and create 50 instances for something that should be so simple...

    I even tried creating the offset rule via a separate actor, so I could leave my main character alone, but that produces jitter effects aswell, the only way I can see to do this is unlock my main character and create a total logic nightmare should I decide anything needs changing :(
  • ORBZORBZ Member Posts: 1,304
    edited June 2012
  • GMACGMAC Member Posts: 4
    You could create an invisible actor that is tethered at one end to your character and have it so that the camera follows this invisible actor. By doing this you could adjust the offset by adjust where the player controlled character is tethered
  • machinegunkellymachinegunkelly Member Posts: 56
    edited June 2012
    @GMAC

    Nah, that's what let me to this mess... it was WAY too jittery to use this method.
    While it looked great on my computer, once I loaded on to my phone it was a real disappointing nightmare.

    the irritation here is that I've fully separated my logic from my scenes, so I can just build a level, drop my character in and all is said and done, however.... it's not going as planned now that I'm up to my neck in this game.

    @orbz

    I'll check your demo out, I actually just came across that example, while searching my problem.... but it's asking me to install the GS plugin, I do, and restart my browser and it askes me to install the GS plugin!!!

    FUUUUUUU!!!! gonna be one of those days I guess hahahah

  • machinegunkellymachinegunkelly Member Posts: 56
    @GMAC my bad, I rejected your answer as that's what I had done first, but it was real buggy.

    i'd "accept" your answer if I could now, but the problem was actually caused by me "spawning" the two actors... if I spawn them on level start, it's jittery as all heck.

    if I have them in the scene, it works fine.... which is bothersome, but I can deal with it I guess...

    @ORBZ

    I tried to find the template, but the gamesalad showcase inside the creator wouldn't work at all..
    like I said, one of those days :(
Sign In or Register to comment.