How do I Make multiple AI shoot

0 favourites
  • 9 posts
From the Asset Store
Shoot balls to destroy as many blocks as possible, at each stage the game will become more difficult.
  • I created a game where there is multiple AI which are the same. I have a problem where only one AI will shoot depending on where which one was placed first. How can I fix this?

    https:// dropbox .com /s/kathqdvk9fxcxpz/Naval%20Warfare.capx?dl=0

  • Don't forget about "For each" action.

    If you have multiple objects in one AI-fellow - Create a variable like "Name" or "Number" in the family.

    I showed you direction. It's will be much better if you'll solve this by yourself.

    Actually, this is my favorite part in programming

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Don't forget about "For each" action.

    If you have multiple objects in one AI-fellow - Create a variable like "Name" or "Number" in the family.

    I showed you direction. It's will be much better if you'll solve this by yourself.

    Actually, this is my favorite part in programming

    I do not have too much time as this is for a project. I need step by step. If you can look at the file i shared and help that would be great. I also have an issue when all enemies destroyed i need to move to the next layout.

  • Well, that was fun ;D

    Did some naval-work just two months ago.

    https://dl.dropboxusercontent.com/u/39210620/Naval%20Warfare_1.capx

    -----------------

    You don't need to create for every level new event sheet. Just make one for the game, one for menu and etc.

    You also don't need unique "CannonFire" for every type of enemy.

    Actually, there is no economy from you.

  • Well, that was fun ;D

    Did some naval-work just two months ago.-----------------

    You don't need to create for every level new event sheet. Just make one for the game, one for menu and etc.

    You also don't need unique "CannonFire" for every type of enemy.

    Actually, there is no economy from you.

    Haha thanks man but i cant figure out how to do it to level 2. IS there anyway you could apply this to the second level.

  • I've changed...a lot

    https://dl.dropboxusercontent.com/u/39210620/NavalWarfare.capx

    You should make another topic to find someone, who will help to create a good, proper z-order.

    I added only simple method which is working only on the PlayerShip. You should do it probably to all objects in the game, but it's not possible in that way. I think Array can help here somehow.

    If someone will resolve this problem, i would be grateful if you give me an example. Maybe someday i will need this too.

    Anyway. It was very good to work with something a lot more easier than my usual projects. Have a good one

  • I've changed...a lot You should make another topic to find someone, who will help to create a good, proper z-order.

    I added only simple method which is working only on the PlayerShip. You should do it probably to all objects in the game, but it's not possible in that way. I think Array can help here somehow.

    If someone will resolve this problem, i would be grateful if you give me an example. Maybe someday i will need this too.

    Anyway. It was very good to work with something a lot more easier than my usual projects. Have a good one

    Love it man last issue is the games objective is to get the treasure. I have the treasure image but cannot make it so when the manowar dies it spawns because i am using the free version. I can put the image in game and if you can make it happen as well as a game over screen and a start screen? that would be great.

    https:// dropbox .com /s/kathqdvk9fxcxpz/Naval%20Warfare.capx?dl=0

  • brendanschaffric

    Create topic as i asked. I will deal with treasure and start/over screen.

  • brendanschaffric

    Create topic as i asked. I will deal with treasure and start/over screen.

    I created one for this

    https:// scirra .com /forum/viewtopic.php?f=147&t=147611&p=938629#p938629

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