How do I urgently make this work? (physics enemy movement)

Get help using Construct 2

Post » Fri Jul 08, 2016 2:06 pm

Hello guys, im having so much trouble getting this to work.
I've tried so many things, but i simply cant get it to work.

So im hoping some C2 expert can help me out a bit, or maybe upload an example capx so i can see how this is done!

Here is what i want to archieve:
Image

Tried so many things... But it didnt quite work..
Heres how it looks right now? im so confused:
Image


Im desperate for any help!
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Fri Jul 08, 2016 6:12 pm

That's a fun result:
https://dl.dropboxusercontent.com/u/542 ... lling.capx

Multiple circles aren't very considerate sometimes though.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Fri Jul 08, 2016 6:33 pm

@R0J0hound

With do you make things so simple, when i want to make them overly complicated? haha
Fun example! And thanks so much for the help!

Now to figure out what i did wrong, and why yours is working so great :D
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Fri Jul 08, 2016 6:36 pm

@R0J0hound

oh wait, i think i know why. When i change you ball's collision mask to a custom or bounding box, it dosnt seem to work. Do you know if this can be archieved withought using a circle as collision box?


Edit: in my own project i used this:
Enemy is overlapping at offset Y 4
anglelerp(EnemySlime.Angle,ground.Angle, 25*dt)

but it still didnt work
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Fri Jul 08, 2016 6:47 pm

@R0J0hound
I've uploaded your capx where i have tried to make them square, and with the anglelerp. Weird results!!

http://ballistastudios.net/weird.capx

Not sure if this is even possible? o.O

Edit:
But at the least, something like this seems to kinda work, when i prevent rotation:

Image
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Fri Jul 08, 2016 7:18 pm

It's probably best to have a separate object that you set the angle of instead of setting the angle of the physics object.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Fri Jul 08, 2016 7:22 pm

I think your right!
But i got it working smoothly now, somehow o.O
However, when i set the angle, and add multiple enemies, then the enemy on the flat slope is getting the angle of the one on the steep slope, is there anyway to somehow pick correctly you think?

And thanks for the help again Rojo, you probably saved me a a day or two by trying to fix it myself! :D
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Fri Jul 08, 2016 7:35 pm

moving the for each above the overlaping condition probably would fix that.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Fri Jul 08, 2016 7:45 pm

omg.. xD that did fix it..
Thanks Rojo!
B
37
S
9
G
8
Posts: 541
Reputation: 8,554


Return to How do I....?

Who is online

Users browsing this forum: Bro7hers, brunopalermo, Calfuso, dop2000 and 17 guests