Enemys Movement/Colision acting weird

Get help using Construct 2

Post » Sun Mar 11, 2012 8:14 pm

Hi once again ^^
I'm doing a Top Down View game but the enemys are all acting weird... I did the "Beginner's guide to Construct 2" and modified it in a way that the enemies has health and when they colide with us we start loosing pieces of our health. The problem came when i added collisions to the enemys, what happens is that when the enemys colides with each other they start pushing each one and even the Player and if the player or the enemy gets stuck close to a wall he is teleported to the nearest empty space
So i used the search button to find if someone had a problem like mine and what i found out was that the "bullet behavior" doesn't handle well with colisions and that the best option was to use an "8 direction behavior" or "Custom Movement Behavior", so that's what i did but with no luck so far (can't even make the enemys move using this method 0o).
If there is someone that knows a capx or a tutorial that explains how to control enemys with an "8 direction behavior" or "Custom Moviment Behavior" please let me know, i'll be very thankfull.
Thank you and have a nice day (sorry if there is any mistake in my english)
B
15
G
1
Posts: 11
Reputation: 986

Post » Mon Mar 12, 2012 9:24 pm

Here is an example file that shows in an easy way what's my problem:
http://dl.dropbox.com/u/18148396/construct/Being%20pushed%20and%20teleported.capx

If you let the enemies come close to you and there is a wall behind you you get telported to the nearest empty space I want a way to avoid this but at the sime time i want the enemys to colide with each other.

Thanks
B
15
G
1
Posts: 11
Reputation: 986


Return to How do I....?

Who is online

Users browsing this forum: armaldio, blackhornet, makkancs, TiagoCesar and 17 guests