How do I get my enemies to ignore solids collission?

0 favourites
  • 4 posts
From the Asset Store
Pixel Enemies for SHMUP consists of 45 enemy ship sprites to be used in your game.
  • 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?

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow, you rock, thank you so much!

  • Glad you like it and good luck with your project!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)