Capriomo's Recent Forum Activity

  • +100, would be very helpful for all the reasons already stated in this thread.

  • Looks like this was done in the past for Construct (1). Hopefully someone with reasonable javascript knowledge can update this to work with construct 2?

    EDIT: can't post full URLs yet:

    scirra.com/forum/effect-blur-motion_t56438

  • I'm also interested in knowing if this is possible. There doesn't seem to be any "global" setting for effects like there are for layers. Any suggestions appreciated.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, an interesting solution. It works well but on second thought the rotation can be disorienting if the player is constantly changing direction. In the end I opted for a simpler approach for the camera.

    Every Tick >>

    Set position to (Player.X, Player.Y)

    Move 1000 pixels at Player.Angle

    This positions the camera as required and minimises camera rotation when the player is changing direction.

  • The approach below works well when the player is only moving in one direction but in a top down game where the player moves in 4 directions I have to change the camera position based on the angle of the player, and the change in angle results in a sudden and jarring shift in camera position:

    Player is between 135 and 225 degrees

    set position to (lerp(Camera.X, Player.X - 1000, 0.05), lerp(Camera.Y, Player.X, 0.05))

    Player is between -45 and 45degrees

    set position to (lerp(Camera.X, Player.X + 1000, 0.05), lerp(Camera.Y, Player.Y, 0.05))

    Player is between 225 and 315 degrees

    set position to (lerp(Camera.X, Player.X, 0.05), lerp(Camera.Y, Player.Y - 1000, 0.05))

    Player is between 45 and 135 degrees

    set position to (lerp(Camera.X, Player.X, 0.05), lerp(Camera.Y, Player.Y + 1000, 0.05))

    I'd like to smoothly move the camera in a circular motion as the player changes direction. Any suggestions appreciated.

  • In my top down game I want to position the player closer to the edge of the window depending on the direction they are facing, so that more of the layout in front of the player is visible compared to when the player is positioned in the centre of the window.

    If my player sprite is moving up it should be positioned at the bottom of the window, if the player sprite is moving left it should be positioned at the right of the window.

    I've tried setting an invisible camera sprite in front of the player and setting the scroll to behavior to this camera, with a different offset depending on the direction the player is moving but this doesn't seem to work.

  • Just adding my upvote to this - this is a much needed feature.

    If the Scirra Team has time to experiment with a front to back renderer then I'm sure they can find the 5 minutes it would take to extend the C2 editor zoom.

Capriomo's avatar

Capriomo

Member since 12 Aug, 2015

None one is following Capriomo yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies