My player walks through walls

Get help using Construct 2

Post » Mon Aug 03, 2015 7:42 pm

Hello everyone, my name is Francisco, and i have a problem.
First, sorry for my english, i'm from Argentina.

My question is, how can i make my player, don't walk through the walls, and solid objects?
I put a sprite into a Layout, and i wrote the event: Touch and move with mouse (with a target). Everything goes fine, until my player pass through solid objects and walls and everything in the "map".
[Moving with keys on the keyboard doesn't make tihs, but i wan't the same with the click and move (mouse) event]

There is a way i can make my player walk but when it hits a solid object stop, and can't pass through it?
I use all the behaviors and configured them, but i'm going crazy

Again, sorry for my english, thanks for your time.
If its possible, give me a .capx project.

With affection, from Argentina, Francisco

PS: if this is a repost, tell me and i'll delete this.
Thanks
B
3
Posts: 3
Reputation: 181

Post » Mon Aug 03, 2015 7:48 pm

You either need to make your player solid too or use a behavior like 8-direction or platformer that interacts with solid objects.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Mon Aug 03, 2015 7:53 pm

I can't believe that, too easy, i just forget the behaviors of my "player" and i was going crazy.
(Sorry, i thought that i did it)
Thanks for your quick reply C-7
B
3
Posts: 3
Reputation: 181

Post » Mon Aug 03, 2015 8:04 pm

Another problem, my player, don't pass through object, but it don't stop when it hits a solid object, i mean in the 8-direction behavior (or platform) (already configured) my player hits and still moving, and dont stop... what about it ?
I will try to write something like: when hits (sprite) speed = 0, but it has a lot of sprites with solid behavior
Thanks
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Kin and 27 guests