Platformer Object with no collision from under it

Get help using Construct 2

Post » Fri Nov 18, 2011 11:34 am

I essentially want a platform object whereupon a character can jump from underneath and not collide (platformer character goes through it), but when you are jumping from above, it collides with it, stopping you from falling.

Is this possible without having to pull up my sleeves and create my own plugin?

I get that it's probably possible with events on a single-player game, by turning off the Solid behavior when the character is under it, but it would affect the other sprites that are on top of it, no?

This is not actually urgent; it's more of a curiosity of mine.

Cheers.
B
14
S
1
G
2
Posts: 85
Reputation: 2,810

Post » Fri Nov 18, 2011 11:55 am

yes its possible

for each platform (consisting of all the blocks that need this behavior)
if platform.y > player.y set platform solid behavior to not solid
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Fri Nov 18, 2011 12:29 pm

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Nov 18, 2011 3:16 pm

Construct 2 needs a new alternative to Solid - Classic called it "platform" and it's a solid you can jump on to from beneath.

However that name would conflict with the "platform" movement! Any ideas what the attribute should be called to not conflict/be confusing with the platform movement? :P
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Fri Nov 18, 2011 3:21 pm

semisolid?
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Fri Nov 18, 2011 3:32 pm

jumpthru or dropthru
B
64
S
8
G
9
Posts: 290
Reputation: 8,590

Post » Fri Nov 18, 2011 3:42 pm

But you can also use this behavior for an "One-Way-Door" perhaps by turning it on 90?

What about "oneWay"TastyBytes2011-11-18 15:45:34
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Fri Nov 18, 2011 3:53 pm

Or you could call it Valve behaviour.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Nov 18, 2011 4:06 pm

scaffold
cascade
plank
....arrrgh
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Fri Nov 18, 2011 4:16 pm

One Way Door - it's cool idea! this is a more abstract concept
B
4
S
1
G
1
Posts: 36
Reputation: 949

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests