AI Climbing Ladder

Not favoritedFavorited Favorited 0 favourites
  • 7 posts
From the Asset Store
Professional AI chatbot for Construct 3 with OpenAI API support, multiple models, conversation management, and full resp
  • I have been looking for a tutorial on how to make an AI climb ladders, and I can't find anything usefull other than halfbaked theoretical ideas.

    Does any of you guys know how to do make it happen. And Please, for the love of God, no suggestions or ideas. I am done with that.

    I would even play for a solution. (But it HAS to work!)

    Cheers

  • You have a platformer game and you want to make something like pathfinding? For example, so a bot can chase the player?

  • Those are some pretty tight constraints on what kind of reply is acceptable. Any shared solution would just end up being a suggestion or an idea, even if a way was found. But I'm all for abiding by constraints.

  • Thanks for answering guys.

    The AI logic is not really that advanced. My idea is to make a Prototype in C3 for a later full fletched C64 game. And Ofcourse, as the C64 limited Ram and CPU, it has to be simple.

    The Ai has really only four states. Up, Down, Left Right.

    So when ever the player is left for the enemy, the enemy will of course go left, and if player is above, the enemy will go Up if it passes a ladder that leads upwards.

    I know it is a basic task for you guys, you are pretty skilled. But i Just can figure it out (I am a graphic artist).

    Here is a little preview of my C64 game.

    I am willing to pay a bit of money for it. Let me know if you are interested. /Cheers

    https://youtu.be/W1v0oR65t18?si=5fMybHCrc4S8uY4Z

  • Well, I have nothing but suggestions. These examples are meant as ideas that maybe you can run with.

    The first idea is to do pathfinding over a path of connected nodes you define in the editor. Made this yesterday. The pathfinding algorithm is just a breadth first search that moves the unit to the closest node.

    dropbox.com/scl/fi/gjktm17fyb2azud1gmbqg/pathfind_ladder.c3p

    The second idea is to just do a bunch of logic to decide what keys for the ai to press. Like move left or right toward the player, and if the destination is a platform above move to the closest ladder first. Basically, in this way you'd handle as many specific cases as needed till it looks ok. This is much less general purpose, and it tailored to the level design. Realistically you'd both have to either tweak your levels or logic.

    This particular logic can handle two platform levels and ladders. AI jumps over holes and up ledges, but I ran out of events before handling falling down holes.

    dropbox.com/scl/fi/i9z6ptjjqo9msobjd98av/pathfind_ladder_behavior.c3p

    Arrow keys to move manually. Hold down left mouse button to ai move toward the mouse.

    Anyways, those are two ideas developed up to a point. Neither are perfect but hopefully they give some ideas on how you could go about it.

    After messing with both approaches, I think next time I'd do a hybrid of the two

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you So much ROJOhound, you are a life saver! If you need ANY help with graphics, please write back and i will gladly help you. I can also give a 'Buy me a coffee' it you have an account?

    I was actually thinking of having two raycasts at 0 and 180 degrees for locating laddders on the horizintal axies. Then take the one that is closest to the player. I certainly has got some new imput from you now to work with.

    Cheers mate! :-)

  • Glad it was helpful. I don't need any graphics at this time but I appreciate the offer. Also no money or donations needed. This is a zero cost hobby for me. It’s mostly just a fun mind exercise.

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