0 Favourites

How do I Create Toggle AI Movement?

  • 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.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
233 22,270
TiAm's avatar
TiAm
Unread hot topic
99 10,158
karshinkoff's avatar
karshinkoff
Unread hot topic
0 Favourites
Path Movement Behavior
98 52,483
R0J0hound's avatar
R0J0hound