ViewportLeft expression

Bugs will be moved here once resolved.

Post » Sun Apr 13, 2014 6:44 am

Problem Description
I am not sure, but i think the viewportleft positive and negatives are in reverse. ViewportLeft("layer")-obj_player.width seems to check on the right side of the player, but should be the left side. If i change to ViewportLeft("layer")+objplayer.width it checks the left side, but it should be right side.

Attach a Capx
https://dl.dropboxusercontent.com/u/396 ... ftbug.capx

Description of Capx
Moves player onscreen with WASD keys, and has a zelda style viewport pan when you get to the edge of the screen.

Steps to Reproduce Bug
  • move the player off the right edge of screen. wait until it finishes scrolling.
  • move the player off the left edge of screen.

Observed Result
Viewport scrolls before the player is outside view.

Expected Result
Viewport scroll will only trigger once the player is outside the view. Like the right side

Affected Browsers
  • Chrome: YES
  • FireFox: YES
  • Internet Explorer: YES

Operating System and Service Pack
Windows 7 64 bit

Construct 2 Version ID
version 166
B
50
S
11
G
7
Posts: 274
Reputation: 8,146

Post » Tue Apr 15, 2014 3:07 pm

Closing, please follow the guidelines and submit a minimal project; if there really is a problem with the expression it should be possible to create an example .capx with less than 60 events. As it is it's difficult to tell it's not just a mistake in your own events.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 16 guests