bad performance with camera on ad hoc AND viewer...

3xL3xL Member Posts: 676
edited April 2012 in Working with GS (Mac)
so theres a section on my level where you get on a transporter (say a train or car) and the hero AND the transporter both interpolate to the opposite side of the scene. scene is about 4000px in width.

the whole level plays perfectly fine. smooth like butter. but when the camera follows the transportation event, it stutters and jitters.

so i slowed down the interpolate time, and still stutters. i DO notice something tho:

right in the center of the scene (at the 2000px mark) theres a giant boulder. the boulder is pretty big, maybe the image size is causing this? idk. any tips? either i'ma be trynna crack this. any advice is surely welcomed!

Best Answer

Answers

  • theCodeMonsterstheCodeMonsters Member Posts: 359
    Try re-framing the Camera borders. Try making whomever has the follow me camera behavior move at a constant speed. There is probably some friction from another actor keeping the main actor from falling. Instead, use a constrain value on your actors.Y Position so that there is no friction/jittering.

    The last one specifically should solve your problem.
  • 3xL3xL Member Posts: 676
    Are there any constrains involving the camera controlled actor?
    Actually yes there is. The hero temporary constrains to the vehicle when the transport is triggered.

    UPDATE:

    One of the main issues was that there were some blocks in the way of the path the transporter was going, and those blocks collide with the hero. So I fixed that issue and the the big obvious stutterring camera jump is gone. Still , even though the camera is ALOT smoother, it's not THAT buttery smooth. Still looks kinda jittery. Maybe it's me. Idk.. But do constrains affect the camera?
  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    @3xL I asked for a specific reason. It may be a layer issue. Make sure the actor that is being constrained is ABOVE the actor that it is constrained to in layers. So, if you have a Hero that is following a camera actor, make sure the camera actor is below the hero in layers.
  • 3xL3xL Member Posts: 676
    @3xL I asked for a specific reason. It may be a layer issue. Make sure the actor that is being constrained is ABOVE the actor that it is constrained to in layers. So, if you have a Hero that is following a camera actor, make sure the camera actor is below the hero in layers.
    oh ok. i'll double check that.. either way the obvious stutter is pretty much gone now :) thanks guys, i should be done with this game in the coming weeks :) can't wait!
Sign In or Register to comment.