When the camera moves up, the actor does ?

JamieOneilJamieOneil Member Posts: 877
edited November -1 in Working with GS (Mac)
How can i make the actor move up when the camera does, but i don't want it to be like HUD, putting things on Non scrollable layers.
I want it to move using something like 'move' or 'interpolate'
Is there anyway to do this ?
so when the camera moves up '1' the actor moves up '1'
thanks

JamieOneil

Comments

  • micksolomicksolo Member Posts: 264
    Thats weird...If your actor is controlling the camera it should scroll x or y no?

    Or are you talking about another actor that is not controlling the camera? In that case

    Make an attribute called CameraPosY (make this real otherwise the movement can be jerky if its an integer)
    constrain CameraPosY to the controlling actor's PosY.

    Then the (Non camera controlling) actor you want to move up with the camera:
    Set PosY to CameraPosY

    and that should make him move up with the camera.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you could set a start x and start y for your character and then constrain camera origin x and camera origin y to player.x-start.x and player.y-Start.y.

    But why not just make the tracking area 0x0 and set the player to control the camera. the player still goes in a scrollable layer
  • JamieOneilJamieOneil Member Posts: 877
    Thank for replys,

    I can't use camera control because there is another actor (the player) using it.
    This is just a spawned, but it has an image. So if I put it on a non actionable layer for it to move up, then then actors spawn below it because the XY don't change on a non scrollable.
Sign In or Register to comment.