How do I get a platform to vanish?

Just started using Construct 2? Post your questions here

Post » Sat Aug 23, 2014 8:14 pm

I'm making a platformer and I have a switch which toggles between two worlds (yes, it's for Ludum Dare!), each of which has platforms in different positions. Currently, I have it set so that when the switch is toggled, the platforms from the old world turn invisible and their solid behaviour is disabled. This works fine to an extent - if you now try to jump on one, you can't - but if you are already standing on one then you don't fall down as I'd like. The platform vanishes but continues to hold you up. What can I do to fix this? I don't want to have separate layouts for the two worlds because that seems to cause a lot of problems with keeping many sprites global.

Thanks in advance!
B
5
S
2
Posts: 53
Reputation: 792

Post » Sat Aug 23, 2014 10:48 pm

Its the player platform behavior not triggering any events to make it move. Maybe something like set-y to "player.y - 1" to give it a kick
B
32
S
6
G
2
Posts: 317
Reputation: 2,801

Post » Sat Aug 23, 2014 11:49 pm

Thanks! That does the trick nicely. :)
B
5
S
2
Posts: 53
Reputation: 792


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest