[r123.2] Is By Wall miss detection

Bugs will be moved here once resolved.

Post » Sat Mar 30, 2013 8:49 am

Link to .capx file (required!):
https://dl.dropbox.com/u/39382262/BUG/ByWall/ByWallBug.capx



Steps to reproduce:
1. Walk to the edge, under the YELLOW brick (either left / right side)
2. Press UP first to jump, then press LEFT / RIGHT when you're right in front of the YELLOW brick
3. Sometimes HAS / BY WALL will miss detection
4. Also try moving backward 1 grid, then press UP+LEFT / UP+RIGHT at the same time



Observed result:
Sometimes HAS / BY WALL condition will miss detection

Expected result:
HAS / BY WALL always detected correctly

Browsers affected:
Chrome: yes
Firefox: n/a
Internet Explorer: n/a

Operating system & service pack:
Windows 7 x64

Construct 2 version:
123.2
B
34
S
13
G
8
Posts: 134
Reputation: 8,118

Post » Mon Apr 08, 2013 5:00 pm

Closing as won't fix: the problem is the "is by wall" check moves the object up (so it doesn't register an overlap with the floor or slope), then across. If when it first moves the object up it finds it's overlapping something, it determines it must be the ceiling, and gives up on detecting a wall and returns false. This means 'Is by wall' doesn't work if the player's head is right by the ceiling. I can't really change this, because if it moves the player only horizontally to test wall collisions, then slopes also trigger 'Is by wall' which is clearly wrong. I'm afraid I think you'll just have to find a way to work around this with detector sprites or 'Overlapping at offset'.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests