Glitchy behaviours just by objects being into a subfolder!!

Report Construct 2 bugs here.

Post » Wed Apr 26, 2017 9:34 pm

Problem Description

Platform behaviour gets glitchy and imprecise on some situations......only if the object is organized into a subfolder!

Attach a Capx
CAPX

Description of Capx

The example presents a simple platform game situation, with a moving platform (solid object with sine behaviour), a solid block on top of it (solid + platform behaviours with default controls disabled), and a player character with platform behaviour.

Steps to Reproduce Bug
  • Create a sprite with sine (linked to vertical movement) and solid behaviours.
  • Create a sprite with platform (optionally disable default control so it stands still) and solid behaviours to act as a solid block and place it on top of the moving platform.
  • Create a platform behaviour sprite.
  • Create an object subfolder and move the player object to it.

Observed Result

With the player standing on the solid block, it lags behind the vertical movement of the platform and the block, and the "Is on floor" condition (Displayed via text at runtime on the example) acts erratically only being true at the extremes of the vertical movement when it is slower (As you can imagine, this can lead to all kind of issues on a complex project...).

At first I tought it was just a limitation with Construct and stacking stuff on moving platforms, but the thing is........It works perfectly IF YOU JUST TAKE THE PLAYER OBJECT OUT OF THE SUBFOLDER! (You can do just that on the example capx...take the player object back from "New folder" to the Object types main folder).


Expected Result
Well, at least that folder organized objects behave the exact same way as unorganized ones...This could be a pretty serious bug...who knows what else may not work properly just because being into a sub folder? :?

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)

Operating System and Service Pack
Windows 7 Sp1

Construct 2 Version ID
r244 64-bit (A friend of mine still uses r237 and reproduced the bug)
B
26
S
7
G
1
Posts: 74
Reputation: 2,092

Post » Wed Apr 26, 2017 10:09 pm

Wow, it actually does change the behaviour just by moving the player object to a subfolder. I've had this exact problem for ages and it was all because of a subfolder. Hope this will be fixed. Thank you for sharing
B
57
S
24
G
14
Posts: 771
Reputation: 13,133

Post » Wed Apr 26, 2017 10:22 pm

I can reproduce, @Ashley could you please look into this?
This is really concerning and could affect a lot of projects.
ImageImageImage
B
63
S
23
G
78
Posts: 664
Reputation: 44,941

Post » Wed Apr 26, 2017 11:22 pm

Tested, can also reproduce. This would explain a number of weird bugs I ran into with Sombrero.
B
84
S
46
G
25
Posts: 528
Reputation: 21,566

Post » Wed Apr 26, 2017 11:23 pm

I can reproduce this as well. Could it be related to the fact that C2 editor works faster when you have your object in the subfolder?
ImageImageImage
B
27
S
16
G
82
Posts: 1,029
Reputation: 45,777

Post » Thu Apr 27, 2017 2:08 am

BackendFreak wrote:I can reproduce this as well. Could it be related to the fact that C2 editor works faster when you have your object in the subfolder?


I don't know why that would change runtime behaviors.
B
84
S
46
G
25
Posts: 528
Reputation: 21,566

Post » Thu Apr 27, 2017 3:25 pm

I reproduced it too.
A few days ago I've made a post about something similar (glitchy), but in my case, the player stays always on floor.
I've explained why I think this is happening in that post.
You could take a look at it:
viewtopic.php?t=190932
B
39
S
10
G
9
Posts: 213
Reputation: 7,032

Post » Thu Apr 27, 2017 8:15 pm

That's an amazing bug-find! I can reproduce it - and I fear for the repercussions for the c2runtime.....
A big fan of JavaScript.
B
76
S
20
G
73
Posts: 2,242
Reputation: 45,958

Post » Thu Apr 27, 2017 9:37 pm

I can confirm too.. that is pretty weird.
B
47
S
22
G
65
Posts: 1,127
Reputation: 38,395

Post » Mon May 01, 2017 7:48 pm

@ashley this is a bit of a big issue.
B
84
S
46
G
25
Posts: 528
Reputation: 21,566

Next

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest