How do you make a sprite solid for one sprite but not others

Get help using Construct 2

Post » Wed Feb 24, 2016 6:53 am

I have asked this question before so lock the thread if you want but i would like you not to. I like to ask questions again if i it's been a while since i asked it before so please understand the situation here. How do you make a sprite whit the platform behavior solid when one sprite touch it but not when other sprites whit the platform behavior touch it? So that one sprite whit the platform behavior can stand on it and can't move through it but other sprites can't stand on it and can move through it? I would like an detalied answer and a another answer if i don't understand it well enough and ask for a clearer version of the answer.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Wed Feb 24, 2016 7:00 am

Do you need the other sprites you want to pass through have the platform behavior? If you need it just for gravity, you can do similar with the bullet behavior.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Feb 26, 2016 2:00 pm

oosyrag wrote:Do you need the other sprites you want to pass through have the platform behavior? If you need it just for gravity, you can do similar with the bullet behavior.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Fri Feb 26, 2016 2:04 pm

oosyrag wrote:Do you need the other sprites you want to pass through have the platform behavior? If you need it just for gravity, you can do similar with the bullet behavior.










The other sprites need the platform behavior becuase they is supposed to move up slopes and move on platforms that aren't completly flat. They are just not going to stopped by the platforms the player sprites is standing on. I suppose i can make still give the other the bullet behavior and make them move in the directions they would move in whit the platform behavior. But i still would want a another answer so i don't have to do that.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Fri Feb 26, 2016 5:27 pm

In this case I would make an exception for the flat platforms - don't make them solid with a behavior, but manually add an event so when the player collides with them the player is stopped. Everything else will go through.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458


Return to How do I....?

Who is online

Users browsing this forum: Laura_D, plinkie and 20 guests