Oko's Recent Forum Activity

  • Because of the LOS and RTS behaviours it's very easy to simulate AI (RTS has pathfinding and object avoidance) (LOS = line of sight).

    You can add behaviours to an object by looking at it's properties and clicking : add behaviour.

    Example,

    IF enemy has player in LOS

    + move to: (Y) player.x (X) player.y (RTS)

    IF enemy DOESN'T have player in LOS (you can invert conditions by right clicking on them and then "invert")

    + move to: (Y) enemy.value('ystation') (X) enemy.value('xstation') (RTS)

    Enemy value "xstation" and "ystation" determine they're starting position. you can set those automatically with the event :

    Start of layout :

    set enemy.value('xstation') to enemy.x

    set enemy.value('ystation') to enemy.y

    This is of course a very (EXTREMELY) simplified AI, you just have to get more creative I.E. having the enemy's also check distance between them and player, make them stop and look around after losing sight of player and things like that .

    Also : this is my first post!

    Edit : If your talking about platforming AI, completely disregard my post .

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Oko's avatar

Oko

Member since 14 Dec, 2009

None one is following Oko yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies