How do I get my enemies to ignore solids collission?

Get help using Construct 2

Post » Sat May 23, 2015 4:45 pm

I will have the red and blue enemies moving across the screen, but they stop at the blue walls, which are intended to keep projectiles inside. How do I get the enemies to ignore the solid so I can have them wrap?

Image
B
5
Posts: 37
Reputation: 299

Post » Sat May 23, 2015 9:20 pm

Hi,
You cannot disable solid collision for 8 direction objects in any easy way, to let them wrap. There are how every plenty of other options for you. I took the liberty of coding up an example for you using the bullet behavior as enemy control (you can slow down the speed and make them turn towards an object to have them more like ai-enemies. This way you have the option to let them Bounce of solids or simply let them pass. I also added the wrap behavior to them. There are quite smart things you can do with the Sine behavior which I've learnt during the past years. I'm not really sure it will suite your needs (I just guessed given the bit of code and sketchup I saw). But I've added two sine behaviors to the "cannon" one for the horizontal movement and one for the angle movement.

So hope you get something good from this :)
Example.capx
B
39
S
9
G
4
Posts: 163
Reputation: 6,516

Post » Mon May 25, 2015 2:49 pm

Wow, you rock, thank you so much!
B
5
Posts: 37
Reputation: 299

Post » Mon May 25, 2015 2:50 pm

Glad you like it and good luck with your project! :)
B
39
S
9
G
4
Posts: 163
Reputation: 6,516


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Google [Bot] and 5 guests