[Solved] - Scrolling Camera Issue

0 favourites
  • 5 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • I'm trying to make a Thunder Force style Shootemup as my first game.

    For 3hours or so now, I've been trying to get a scrolling view - that the player can freely move in, but not out of.

    So far, I have Thunder Force like camera with constraint to view.

    Every Tick >> Scroll To xBound.X && xBound.Y

    This lets you have really tall levels if you want.

    The Scroll To function is acting odd.

    I have "xBound" object with Bullet behavior, speed of 50.

    In game, the views is supposed to be constantly moving Right.

    It does, but the xBound object moves off screen right.

    It bothers me... <img src="smileys/smiley7.gif" border="0" align="middle">

    -----------------

    Capx

    ----------------

    ----------------

    Edit: Forgot Ctrls

    Arrow Keys - Mvmnt

    Num 1-3 Debug Weap Select

    "A" - boost

    "D" - fire

  • Couldn't you have just used 8-direction behaviour instead of all of that xspeed logic for movement? Can't really help with the collision on the border as I'm not sure what you've done but I would guess you can limit Y movement when the UI collides with the left/right side of the ship.

    The scrollto behaviour is working as expected. It scrolls with the ship when you move out of the 1280x960 window view.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd heard about *dt stuff somewhere and wanted to try it out lol.

    Yeah, just ignore the movement stuff. <img src="smileys/smiley34.gif" border="0" align="middle" />

    The scrolling works, but the Green square it's supposed to keep in center view, scrolls off screen.

    <img src="smileys/smiley13.gif" border="0" align="middle" />

    It also does not allow for cam changes in movement angle

  • Sorry not got time to go through it all but make sure you have your green square on the correct layer (you have it on the ui at the moment ?) and also should the the scroll to be going to playerbox.y or xbound.y ?

  • If you need to facepalm yourself... you're probably tired lmao

    <img src="smileys/smiley41.gif" border="0" align="middle" />

    Thats like the only thing I didn't check...

    The ways its set up...

    system-every tick>>>>scroll to>>>xBound.X && playerBox.Y

    Allows player to control what height, and path they want to take.

    Thunder Force 4 did a lot of this.

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