Can you make a sprite solid for one sprite but not others?

Get help using Construct 2

Post » Thu Jan 28, 2016 9:13 am

So that one sprite can't move through it and can stand on it but other sprites can move through it. Can you make it work?
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Thu Jan 28, 2016 5:15 pm

Yes.. but you would have to get creative.. it wouldn't work using existing solid behavior though.
You would need to have events that on-overlap or on-collide decided if the object could pass through and then allow such action.

Search forums and tutorials for doors or making a door... sounds similar to what your trying to do.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 636
Reputation: 9,333

Post » Thu Jan 28, 2016 6:50 pm

If you make the sprite solid but collisions disabled and make collisions enabled when the sprite that i supposed to be able to stand on it and not being able to move through it is overlapping the sprite at offset. The problem is that something needs to make it so that when the sprite is not overlapping the solid sprite at offset, the collisons would get disabled and it doesn not exist a not overlapping at offset action. Even if this would work other sprites would not be able to move through the solid sprite while the one sprite is overlapping it.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Thu Jan 28, 2016 7:09 pm

I don't know if I got it right, but here is my suggestion... You need to create a instance variable for the object, then you can do: When X event -> Set Y OBJECT instance variable to (Value) or When X event -> Y OBJECT toggle boolean. This way you can control a variable for each instance of the same object independtly from the others same objects. So then you could do a: When Y OBJECT instace variable = value -> Set solid disabled.
B
7
S
2
G
1
Posts: 38
Reputation: 917

Post » Fri Jan 29, 2016 3:30 pm

chrisinfinger wrote:Yes.. but you would have to get creative.. it wouldn't work using existing solid behavior though.
You would need to have events that on-overlap or on-collide decided if the object could pass through and then allow such action.

Search forums and tutorials for doors or making a door... sounds similar to what your trying to do.









What do you mean whit X event. I get the rest but not that.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Fri Jan 29, 2016 6:48 pm

Do X Event mean at overlapping at offset X and Y?
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Thu Feb 04, 2016 8:50 am

I would like to have a another answer or a clearer version of the previous answer.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Thu Feb 04, 2016 4:16 pm

I would like an answer.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Thu Feb 04, 2016 4:16 pm

I would like an answer.
B
11
S
2
Posts: 262
Reputation: 1,309

Post » Fri Feb 05, 2016 1:44 pm

I am going to keep replying until i get an answer.
B
11
S
2
Posts: 262
Reputation: 1,309

Next

Return to How do I....?

Who is online

Users browsing this forum: HenryPK, Yahoo [Bot] and 2 guests