A solid reaction with only One object

Get help using Construct 2

Post » Fri Feb 01, 2013 10:31 am

Hey, i got a Problem again.

How can i create an object, that only react solid with one other object? I want to make a playfield, that the player can't leave, but his bullets should do so!

Hope you understand:)

Any ideas?:)

Thx in advance
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Fri Feb 01, 2013 11:03 am

Hey,

just use the "Bound to Layout" behavior for the player. This would be the easiest solution, at least if your playfield is the same size as the layout.
B
5
Posts: 10
Reputation: 822

Post » Fri Feb 01, 2013 11:14 am

I wanted to use the event on walls. like, player cant walk through the wall but shoots over it!

So the BoundToLayout-Behavior isnt what im looking for.

Thank you for your idea:)

Other ideas?
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Fri Feb 01, 2013 3:57 pm

The bullets generally flies through anyways? https://dl.dropbox.com/u/21151675/examples/exampleSolids.capx
If something else wierd is going on you can use the "set collisions enabled/disabled" action upon collision with the wall.
Example
B
11
S
2
G
4
Posts: 78
Reputation: 3,292

Post » Fri Feb 01, 2013 5:18 pm

cant open your example, i just have release 114 :)

Let me explain the situation:

i created a blank sprite called "hole" for example. I want the player to shoot over hole, but not to go through.

At the moment i solved it with "Player"->on collision with another object "hole(which is not solid, cause it shouldnt reflect bullets ;-) )" and then "8 Direction movement reverse".

It doesnt really work out fine. Its a little bit like glue, the player sticks there pretty long and if i continue running against "hole", sometimes i can wander through!


Hope i could figure out, where the problem is! :)
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Fri Feb 01, 2013 5:20 pm

When i use your " enabled/disabled" solution, i guess my player would shoot himself, if the wall turns completely solid !;-)
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Fri Feb 01, 2013 9:54 pm

Shoot over the hole? You mean like a bullet or...?
B
11
S
2
G
4
Posts: 78
Reputation: 3,292

Post » Sat Feb 02, 2013 10:52 am

yeah, let me try to explain again

I made about 6 weapons. Some should shoot over "holes" "walls" etc, some shouldt. So i clicked on "bounce of solid" in the bullet behavior of the bullets of my weapons. Works out pretty fine so far.

My player shouldt be able to walk over some holes, but be able to shoot over it, so i cant make them solid. If i would do so, a hole in the ground, would reflect some of the bullets.

Only the player should be "reflect" no other objects! everything else should fly over.

Hope you get it. Sorry for bad english! :)

THX so far!
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Sat Feb 02, 2013 4:55 pm

Do you have a Capx file so I can see for myself?
B
11
S
2
G
4
Posts: 78
Reputation: 3,292

Post » Sat Feb 02, 2013 5:09 pm

I'm not at home, but i' ll give it to you tomorrow!:)

Thx, i hope you can help me!
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Next

Return to How do I....?

Who is online

Users browsing this forum: spcsmrf and 27 guests