How do I make a custom solid object

Get help using Construct 2

Post » Wed Mar 18, 2015 6:03 pm

I am trying to make a solid object that works just like a normal solid until the player picks up a item. Then it will allow the player to pass through it but nothing else. This way enemies can not follow.
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Wed Mar 18, 2015 8:40 pm

One way would be to make a variable that stores whether the player has the object or not (1 for yes, 0 for no) and make an On-overlap event on the barrier that checks the variable when the player sprite overlap it. If player is determined to have object then move him x number of pixels past, or teleport him to other side via a respawn event. Since the barrier can then stay solid the enemies will never be able to cross.
B
46
S
10
G
4
Posts: 554
Reputation: 5,951

Post » Thu Mar 19, 2015 10:48 am

I cant get that to work, if the object is solid it will not let me move the player passed it
B
29
S
6
G
1
Posts: 93
Reputation: 3,020


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests