Added: 5 months ago
From: TheJavaHub
Views: 2,546
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (19)

Sign In or Sign Up now to post a comment!
  • I recently stumbled upon your tutorials and i love them but there is one thing that would make me love them even more... if you would make the tutorial on AI that will find a path around objects and such. I've been thinking of ways to do this for a while now and I just can't seem to find a way to do it.

  • @Enigma7995 Maybe soon I will make an AI tutorial like that but if you want more information visit the forums and ask :)

  • Im trying to make a game too, in my game its pretty much like this, but the player and the enemies can only move on the black (just made a picture in paint with black paths and spaces) can you tell me which methods to use or something? Or will there be a tutorial on that soon?

  • Will Colisions Stop The ''Enemy'' to Follow me ? I'm creating an 2D RPG a bit like Zelda.

  • @raoskidoo15 How do you mean? Collisions with your player?

  • @TheJavaHub I'm pretty new to Programming , but I understand almost everything in your tutorial. I did the same code as you ( the minecraft game ) But I will change the graphics to a 2D game like Zelda. There will be houses and trees. I want to know if Colisions will stop my Player from passing through the Houses and the samething for Mobs

  • @raoskidoo15 If he hadn't answered yet: No, the enemys will not be stopped by collision. They still try to reach you (They would run into walls, if you stand behind the wall for example)! But you could make a boolean hunting; when true they try to reach the player and if they collide with something its false, they will stop hunting you. !for example! ;D

  • Sorry I feel like I'm spamming this video with comments but is this the latest one because I can't find num 18 if there is one?

  • @JackoLlamaGaming This is the latest one so far. Subscribe to make sure you see the latest ones :)

  • @TheJavaHub

    You should give lessons in real life ur pretty good :)

  • Great vid if you don't mind me asking are you English or American

  • @JackoLlamaGaming English through and through :)

  • what was that at 4:14

  • hey, thanks for the tutorial! I currently am working on improving the AI, I have it set to follow me all the time, however I am trying to make it stop after it reaches me.

    How I am going about this is i have made a routine called "sleep" which sets x and y directions to 0 when "destination" = true.

    destination = true when AI.x/y is equal to target.x/y.

    the run routine currently runs when destination = false, how can I make it check in this routine for destination = false to trigger sleep?

  • @AngelDouche66

    Think about the logic a little bit :)

    While(Destination)

    Do this

    if (player and enemy == the same location)

    Destination = false

    does that help?

  • zelda ftw

  • woot! feeling closer to making a cool java game!!!

  • awesome!! :D

    could you also make an AI for a pong game?

  • Thanks so much for this. I've subscribed and am now going over to your forums. I hope you keep making these. You have a very clear way of demonstrating and explaining your code.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more