Aiming Right Stick to the LEFT does not face player left

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Problem Description

    ____ A concise description of your problem here ____

    when aiming the Right stick to the LEFT does not change the direction of the "camera"(Sprite) goes to. yet works when going to the opposite direction

    Attach a Capx

    ____ Upload a Capx to this post ____

    [attachment=0:2m7db73x][/attachment:2m7db73x]

    Description of Capx

    ____ Concise description of what this CapX does ____

    test bed for camera controls using just gamepad

    Steps to Reproduce Bug

    • Step 1 check if instance "IsAimingDown" Bool is True create the same event again
    • Step 2 -Add a sub-event to check if "isPlayerMaskMirrored" Bool is True or false -if it is either set the camera -300px/+300px away from the player
      • set the bools to true when stick if facing left/right for the appropriate direction the Player is facing
    • Step 3 etc.

    Observed Result

    ____ What happens? ____

    aiming the Right stick RIGHT works changing the camera position to lerp to +300px from PlayerMask.x

    aiming the Right stick LEFT does not.

    Expected Result

    ____ What do you expect to happen? ____

    Upon aiming the right stick right, the camera position is Lerps to -300/+300 from the playermask.x

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Windows 8.1

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

    v195

  • Closing, this is just a mistake in your events. When the right analog is moved left, event 13 (testing if it's right) is false, therefore the else event in event 14 runs, which sets IsAimingDown to false. You can see that happening in the C2 debugger (when you point left it does not set that flag to true). Since you only scroll left when IsAimingDown is true, it never scrolls left.

    Please refer to the bug report guidelines; this is why we require .capx files with the minimum objects and events possible, to eliminate the possibility of mistake and unequivocally prove there is a bug in C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks sorry :C

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