How do I Create Toggle AI Movement?

Get help using Construct 2

Post » Mon Jul 27, 2015 7:31 pm

Essentially my dilemma is this: I am making a platformer, but every one of my attempts at creating an enemy that changes direction when they meet a wall has resulted in a game that doesn't load, or a game where when the enemy's direction change trigger is triggered, it freezes. I've tried using boolean logic toggles, and boolean logic setters, and both of those crash the game. I've also tried using a timed system instead where all the AI would be synced up to a clock which would toggle the direction of movement every few seconds. Neither of those seemed to work due to freezing and black screens upon run attempts.
B
5
Posts: 7
Reputation: 241

Post » Mon Jul 27, 2015 11:23 pm

what movement behaviour are u using on the enemies?
if its the platform, there's an event "isbyWall", at left or right, but the wall object must have the solid behaviour
B
9
S
3
Posts: 32
Reputation: 708

Post » Tue Jul 28, 2015 12:00 am

Ah, thanks for the response! I did just a few minutes ago get it working. Essentially it was just a problem with ordering animations and event triggers regarding falling and walking, where I would walk in mid-air if I walked off of a platform, and I would stick in the falling animation while I was walking if I began moving before I hit the ground.
B
5
Posts: 7
Reputation: 241


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests