Issue with platform behavior 2

Bugs will be moved here once resolved.

Post » Wed Dec 28, 2016 9:23 pm

Problem Description
The sprite jumps from one position to another when it hits the right wall.

Image

Attach a Capx
https://dl.dropboxusercontent.com/u/60803633/platformBehavior2.capx

Description of Capx
The capx contains a sprite with platform behavior and collision box edited minimally.
Includes some green solids sprite objects.

Steps to Reproduce Bug
  • Press and hold the cursor right

Observed Result
When the sprite touches the right wall, it magically changes its position.

Expected Result
The sprite should simply fall into the gap.

Affected Browsers
  • Chrome: (YES)

Operating System and Service Pack
win7 64bits sp2

Construct 2 Version ID
R241 64bits
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Thu Jan 19, 2017 5:07 pm

This is really the same issue as your other reports: the platform behavior does not work well at such tiny scales, because its built-in tolerances work on the scale of 1-2 pixels, which is a significant fraction of the size of the object.

In this case it probably falls down the hole and simultaneously tries to move right in to the wall. When it finds it can't move in to the wall, it moves backwards out of the wall, on a scale of pixels. It can't find anywhere until it moves all the way back to the left.
Scirra Founder
B
399
S
236
G
89
Posts: 24,529
Reputation: 195,400

Post » Tue Jan 24, 2017 10:49 pm

Could you edit platform behavior to work correctly with small resolutions ?.

I mean if anyone could alter this to have 2 platform behaviors.
1 the original
2 for small resolutions

I could ask it in the forum to see if anyone would be willing to edit the behavior platform to work with resolutions like 256x144, i think is an acceptable resolution for mobile and retro games.

**I hope they solve this somehow in C3.
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Wed Jan 25, 2017 10:39 am

Why not increase the scale of your game?

If we made a new behavior every time someone wanted it to be slightly different, we'd end up with 10 versions of the same behavior, and beginners in particular would have no idea why they're even there.
Scirra Founder
B
399
S
236
G
89
Posts: 24,529
Reputation: 195,400

Post » Wed Jan 25, 2017 11:15 am

EDIT: Ok, I understand what it means to apply scaling.
This problem would be solved either by increasing the jumping force or by applying scale.
Although it would also be nice to put some kind of solution for the platform behavior to work well with small scales.


I'm not sure I understand what increasing the scale supposes.
Does it mean increasing the resolution of the game?


I did not mean that C2 included another behavior platform, what I say is could I edit my own behavior platform? Could you do it by editing the original?
B
30
S
13
G
21
Posts: 838
Reputation: 14,656


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests