How do I stop a sprite from going through a solid

Get help using Construct 2

Post » Thu Mar 16, 2017 5:08 pm

in my game i have a sprite set to solid so that the ball sprite would bounce off. the ball sprite however still goes through the line sprite. what have i done wrong?
B
4
Posts: 4
Reputation: 189

Post » Thu Mar 16, 2017 5:26 pm

Are both set to solid and what movement system are you using- platform, physics, or other?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Thu Mar 16, 2017 6:54 pm

Another possibility if your ball is moving too fast, it might "miss" the line on any given frame and skip over the collision.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Mar 17, 2017 6:48 am

@thatoh1okid I think i know what kind of game you are trying to make ,If yes then , See the example that comes with c2 : "Rolling Platformer" . I am sure that will help you a lot. :)
B
12
S
4
Posts: 32
Reputation: 1,033

Post » Mon Mar 20, 2017 4:59 pm

lamar wrote:Are both set to solid and what movement system are you using- platform, physics, or other?

i am using physics
B
4
Posts: 4
Reputation: 189

Post » Mon Mar 20, 2017 5:09 pm

that oh1o kid wrote:
lamar wrote:Are both set to solid and what movement system are you using- platform, physics, or other?

i am using physics


When you use physics any object a physics object contacts also has to have the physics behaviors.

So if you have a player with physics it will only react to a wall with physics behavior.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Mon Mar 20, 2017 5:20 pm

If You use physics sprite you must use physics tile if use solid thn solid tile
B
15
S
3
Posts: 37
Reputation: 1,002


Return to How do I....?

Who is online

Users browsing this forum: Solomon and 13 guests