Scroll to issues, player centered on platform

0 favourites
  • 8 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • OK, this my first post, so bare with me.

    Im building a platform game. When my player is on a platform, the player is centered vertically. I want the view to adjust so the platform level is viewed at the bottom of the screen. Ive seen related post with a capx to download but the capx is broke. Trying to get my head around adjusting scroll to X and Y, but no luck yet.

    Thanks in advance

  • Did you mean that the camera is centered vertically when the player is on a platform? I can't understand what you're trying to do very well..

    If I got it correctly, you want the camera to center on the player when he hits the ground, but you want to make it so the ground stays at the bottom of the screen, is that right?

  • Yes, that is, that I want the platform on the bottom of screen when the player lands on it. When the player is on the ground, there is no problem.

  • Create a "ScrollBox" object that is always a set +X and +Y from the player, and make that have the ScrollTo behavior. Then you can adjust those values to determine where to position the player (also handy if you want to scroll elsewhere temporarily, like to reveal the horrible boss just off-screen).

  • I'm not sure I follow you. Can I have 2 objects with the "Scrollto" behavior?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually, i think I understand. Will give it a try. Thanks

  • Brilliant! Works great so far. No detectable gliches. That's what I call "thinking outside the scrollbox".

    Thanks

  • Huzzah!

    Yeah, I should have specified to not have ScrollTo on the player. Good work anyways!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)