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

0 favourites
• 9 posts
From the Asset Store
Give Sound to the enemies that are part of your game! :)
• 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:

Tried so many things... But it didnt quite work..

Heres how it looks right now? im so confused:

Im desperate for any help!

• That's a fun result:

https://dl.dropboxusercontent.com/u/542 ... lling.capx

Multiple circles aren't very considerate sometimes though.

• 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

• 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

• 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:

• It's probably best to have a separate object that you set the angle of instead of setting the angle of the physics object.

• 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!

• moving the for each above the overlaping condition probably would fix that.

• Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• omg.. xD that did fix it..

Thanks Rojo!

• 9 posts