Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. WIP and Showcase
  3. Artificial Intelligence in Hyperpad

Artificial Intelligence in Hyperpad

Scheduled Pinned Locked Moved WIP and Showcase
12 Posts 5 Posters 2.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MurtazaM Offline
    MurtazaM Offline
    Murtaza
    Admin
    wrote on last edited by
    #3

    Creating AI in hyperPad is definitely possible. Aidan Oxley created a pacman game with decent enemy AI, and there are a few users working on pathfinding systems for tower defence type games. With the latest additions of arrays and attributes this is actually even easier then it used be.

    AI is generally just a series of states, and navigating the tree based on whether certain conditions are met. Of course it gets a lot more complicated based on what you want to do.

    When creating an AI system (fora game) you need to look at the engine and it's limitations, and also build it around your goals.
    In hyperPad, your sense of sight, smell, and even hearing can be done with collisions. Various collisions can check whether or not something has happened. Touch would use a small collision shape, the size of your object, sight would use a larger one, and hearing would be even larger.
    It's just a matter of triggering the collisions based on events.

    Since we don't exactly have a "3D" audio system (yet) where volume of sounds are based on distance, you need to fake this with collisions (this is an example of working around limitations).

    But in general, I feel this isn't the right way to design AI for a game. Since you're not really taking into account any gameplay, and it would be very difficult to design this to be generic enough to work in most situations. Typically, an AI system (for games) is designed with strict rules, and possibilities. So knowing the rules of the game, you can design the various states you need for the AI to check and decide upon.

    Any way, AI is definitely possible to do in hyperPad, The hyperPad behavior system is essentially a programming languages (It's a visual event based programming language) so the behaviours shouldn't really be holding you back. The game engine on the other hand is where you need to work around (by using collisions for audio for example)

    Also, you mention there are serious bugs holding you back from a serious project. Please post them!!! Without users telling us about the bugs, we can't fix them. You guys are using hyperPad more than we are, and are doing things we didn't know were possible. So when you come across a bug, it's unlikely we already know about it.
    As of 1.18, there are no serious bugs we're aware of that will hold back development. If that's not the case. Please tell us.

    iTap DevelopmentI 1 Reply Last reply
    0
    • Michael KhalfinG Offline
      Michael KhalfinG Offline
      Michael Khalfin
      wrote on last edited by
      #4

      This sounds like a great idea, and can fit in perfectly with this huge mega-collaboration I just tagged you in. Let me know if you're interested!

      1 Reply Last reply
      0
      • TutorialDoctorT Offline
        TutorialDoctorT Offline
        TutorialDoctor
        wrote on last edited by TutorialDoctor
        #5

        I plan on researching more about "Decision Trees" and "Finite State Machines". Coroutines. Wondering if this can be set up in Hyperpad also (seems like it should be easy enough seeing as hyperpad behaviors for a sort of tree structure already. Neural Networks too perhaps.

        1 Reply Last reply
        0
        • TutorialDoctorT Offline
          TutorialDoctorT Offline
          TutorialDoctor
          wrote on last edited by TutorialDoctor
          #6

          Played around a bit with arrays and they work nicely. Saving arrays to files and retrieving them is pretty simple. That is a huge plus! I don't know how to create an inventory system because we can't store images? Perhaps we have to use some type of binary stuff? I don't know.

          1 Reply Last reply
          0
          • MurtazaM Murtaza

            Creating AI in hyperPad is definitely possible. Aidan Oxley created a pacman game with decent enemy AI, and there are a few users working on pathfinding systems for tower defence type games. With the latest additions of arrays and attributes this is actually even easier then it used be.

            AI is generally just a series of states, and navigating the tree based on whether certain conditions are met. Of course it gets a lot more complicated based on what you want to do.

            When creating an AI system (fora game) you need to look at the engine and it's limitations, and also build it around your goals.
            In hyperPad, your sense of sight, smell, and even hearing can be done with collisions. Various collisions can check whether or not something has happened. Touch would use a small collision shape, the size of your object, sight would use a larger one, and hearing would be even larger.
            It's just a matter of triggering the collisions based on events.

            Since we don't exactly have a "3D" audio system (yet) where volume of sounds are based on distance, you need to fake this with collisions (this is an example of working around limitations).

            But in general, I feel this isn't the right way to design AI for a game. Since you're not really taking into account any gameplay, and it would be very difficult to design this to be generic enough to work in most situations. Typically, an AI system (for games) is designed with strict rules, and possibilities. So knowing the rules of the game, you can design the various states you need for the AI to check and decide upon.

            Any way, AI is definitely possible to do in hyperPad, The hyperPad behavior system is essentially a programming languages (It's a visual event based programming language) so the behaviours shouldn't really be holding you back. The game engine on the other hand is where you need to work around (by using collisions for audio for example)

            Also, you mention there are serious bugs holding you back from a serious project. Please post them!!! Without users telling us about the bugs, we can't fix them. You guys are using hyperPad more than we are, and are doing things we didn't know were possible. So when you come across a bug, it's unlikely we already know about it.
            As of 1.18, there are no serious bugs we're aware of that will hold back development. If that's not the case. Please tell us.

            iTap DevelopmentI Offline
            iTap DevelopmentI Offline
            iTap Development
            wrote on last edited by
            #7

            @Murtaza what kind of pathfinding would you do in Hyperpad? Would it work or would it lag?

            Jack de WildeJ 1 Reply Last reply
            0
            • iTap DevelopmentI iTap Development

              @Murtaza what kind of pathfinding would you do in Hyperpad? Would it work or would it lag?

              Jack de WildeJ Offline
              Jack de WildeJ Offline
              Jack de Wilde
              wrote on last edited by
              #8

              @iTap-Development A-Star pathfinding is probably doable. I tried implementing it a while ago in a project but the game was already laggy before I started and that just made it unplayable. You might be able to get it working alright on a project that isn't laggy already though. For efficiency, you can use binary heaps as described at http://www.policyalmanac.org/games/binaryHeaps.htm and yo could probably use a better heuristic (I used sqrt(x^2+y^2)). I can't guarantee it'll run well in hyperPad though...

              iTap DevelopmentI 1 Reply Last reply
              0
              • Jack de WildeJ Jack de Wilde

                @iTap-Development A-Star pathfinding is probably doable. I tried implementing it a while ago in a project but the game was already laggy before I started and that just made it unplayable. You might be able to get it working alright on a project that isn't laggy already though. For efficiency, you can use binary heaps as described at http://www.policyalmanac.org/games/binaryHeaps.htm and yo could probably use a better heuristic (I used sqrt(x^2+y^2)). I can't guarantee it'll run well in hyperPad though...

                iTap DevelopmentI Offline
                iTap DevelopmentI Offline
                iTap Development
                wrote on last edited by
                #9

                @Jack8680 thanks, I'll look into that!

                1 Reply Last reply
                0
                • TutorialDoctorT Offline
                  TutorialDoctorT Offline
                  TutorialDoctor
                  wrote on last edited by TutorialDoctor
                  #10

                  Why am I just learning there are more than 5 senses?

                  https://en.wikipedia.org/wiki/Sense

                  I should also understand Perception:
                  https://en.wikipedia.org/wiki/Perception

                  Jack de WildeJ 1 Reply Last reply
                  0
                  • TutorialDoctorT TutorialDoctor

                    Why am I just learning there are more than 5 senses?

                    https://en.wikipedia.org/wiki/Sense

                    I should also understand Perception:
                    https://en.wikipedia.org/wiki/Perception

                    Jack de WildeJ Offline
                    Jack de WildeJ Offline
                    Jack de Wilde
                    wrote on last edited by
                    #11

                    @TutorialDoctor I would say that perception isn't a sense, more just how our brain interprets the info from our senses.

                    TutorialDoctorT 1 Reply Last reply
                    0
                    • Jack de WildeJ Jack de Wilde

                      @TutorialDoctor I would say that perception isn't a sense, more just how our brain interprets the info from our senses.

                      TutorialDoctorT Offline
                      TutorialDoctorT Offline
                      TutorialDoctor
                      wrote on last edited by
                      #12

                      @Jack8680 Exactly. If I am to make senses, I have to for a perception of that data somehow, if I want to make it really realistic.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search