Player Camera is moving using X on gamepad but can't figure out how to get it moving on y axis

0 favourites
From the Asset Store
Players follower. use it for anything which follows the player
  • Ah I didn't see it before, you forgot the < symbol before the -30 in your last condition before the else.

    Should be:

    (Gamepad.Axis(0,3)>30|Gamepad.Axis(0,3)<-30)

    Translated it is: First Gamepad, Right Analog Stick X-Axis is greater than 30 or is less than -30

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • FYI you still have the 8 direction behaviour on your sprite object.

    You can do this all without using a sprite object and scroll to behaviour also, just replace the two set sprite position actions to System "Scroll to Position", copy the X and Y expressions from your current set position actions, and within those expressions replace 'sprite.X&Y' with scrollx & scrolly.

    e.g.

    lerp(Scrollx,(Player.X+cos(stickangle)*100),0.1)

    lerp(Scrolly,(Player.Y+sin(stickangle)*100),0.1)

    If you do this, make sure you don't have the scrollto behaviour active on any objects.

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