Solid disabled still solid

Bugs will be moved here once resolved.

Post » Wed Feb 15, 2017 10:31 am

Hi guys, i was working like i do every day with Construct 2 and i decided to add a platform that disappears, like in those games where the platform is active, then it becomes inactive and you have to time your jump on another one then the platform gets active again.

To do it i decided to use the Solid behaviour :

-If the platform is between active frames : Solid is Enabled
-If the platform is between active frames : Solid is Disabled


But when i tried it, something was wrong,
If the player stays on the platform when Solid gets Disabled, the player will still be on the platform and won't fall through.

But if he goes down and tries to jump again, it works, the platform is not solid.

So... what should i do?
B
15
S
3
Posts: 28
Reputation: 1,465

Post » Wed Feb 15, 2017 1:47 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Feb 15, 2017 1:51 pm

You could try:

On Solid Disabled |
| Player.Platform Set Jump Strength to 1
| Player.Platform Simulate Jump
| Player.Platform Set Platform vector Y to -Player.Platform.JumpStrength (you might not need this)

...to make the player jump just a teeny bit right when the solid gets disabled.

If you want to submit a bug report you need to obey this regime btw:
must-read-first-bug-report-requirements_t61748
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Post » Wed Feb 15, 2017 5:57 pm

Just add a slight movement to the player when you disable the platform and they should fall. Jump would work or move left or right.

Not a bug and just a direction issue that you need to be aware of. If you don't move the player it is still following the last movement you set. That is not an issue using physics but is with direction controls.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Wed Feb 15, 2017 11:08 pm

It works!

I understand, i'll think of it each time i make those platforms, thank you!
B
15
S
3
Posts: 28
Reputation: 1,465

Post » Mon Feb 20, 2017 3:42 pm

Closing as this was posted to the bugs forum, please see the posting requirements for this forum or post in the "How do I" section.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests