Aiming Right Stick to the LEFT does not face player left

Bugs will be moved here once resolved.

Post » Thu Jan 22, 2015 1:51 pm

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 ____
AimingDownBug.capx



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
You do not have the required permissions to view the files attached to this post.
B
29
S
6
G
2
Posts: 232
Reputation: 2,893

Post » Tue Jan 27, 2015 5:41 pm

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.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Thu Feb 05, 2015 11:40 pm

thanks sorry :C
B
29
S
6
G
2
Posts: 232
Reputation: 2,893


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests