Back with some instance trouble, I just don't seem to grasp it ....
https://dl.dropboxusercontent.com/u/98471899/Scirra/testAI.capx
I tried to make some basic AI here and it works with one instance but if you duplicate the soldier it will mess up things. Not sure about the "For Each" event here, it doesn't seem to work with or without it....
And press Z will create a grenade that should land on the solid block, it works most of the time but sometimes it falls through the block if you keep pressing Z enough times.
Ai is all about right picking the instance. If this is your firs try on AI I suggest try something more simple, basic Ai.. then start to build up to your character.
I have some examples of basic AI here https://www.scirra.com/store/bundles/blue-robot-guy-ai-bundle-3580
and some more complex, handling attack states here https://www.scirra.com/store/royalty-free-game-templates/beatem-up-platformer-687
Well,it doesn't seem to work for me no matter how simple I make it...
here is a somewhat simplified version
https://dl.dropboxusercontent.com/u/98471899/Scirra/testAI2.capx
pic
https://dl.dropboxusercontent.com/u/98471899/Scirra/testAI.jpg
Again, it works with one instance but not with two or more. Is there is some way to make it work?
Bump.
Here's the example even more simplified:
https://dl.dropboxusercontent.com/u/98471899/Scirra/testAI3.capx
The AI is just some random events, I can't make this work with two or more enemies on screen...
https://dl.dropboxusercontent.com/u/98471899/Scirra/testaAI3.jpg
and here is a pic of the simplified code.
I guess I'll be a nuisance and bump this thread now and then and see if anyone can help .
I have tried lots of different things and looked in the tutorial section, but of no avail...
blackhornettechnologies.com/Construct2Stuff/testAI3_BHT.capx
I think there were too many states conflicting. I'm also not a fan of Trigger-once, and given you already have two states, it seems redundant to that also.
Develop games in your browser. Powerful, performant & highly capable.
Great, thanks a lot!
That takes care of the grenede problem mentioned in the first post too; Trigger-once messed things up, so that's good to know.