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.
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?
@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
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?
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.
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 4 weeks ago in playlist Beginner Java Game Programming
@Enigma7995 Maybe soon I will make an AI tutorial like that but if you want more information visit the forums and ask :)
TheJavaHub 3 weeks ago
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?
dezenaamvergeetiknie 1 month ago
Will Colisions Stop The ''Enemy'' to Follow me ? I'm creating an 2D RPG a bit like Zelda.
raoskidoo15 3 months ago
@raoskidoo15 How do you mean? Collisions with your player?
TheJavaHub 3 months ago
@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 3 months ago
@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
Genuigr 2 months ago
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 4 months ago
@JackoLlamaGaming This is the latest one so far. Subscribe to make sure you see the latest ones :)
TheJavaHub 4 months ago
@TheJavaHub
You should give lessons in real life ur pretty good :)
JackoLlamaGaming 5 months ago
Great vid if you don't mind me asking are you English or American
JackoLlamaGaming 5 months ago
@JackoLlamaGaming English through and through :)
TheJavaHub 5 months ago
what was that at 4:14
Ninjason1337 5 months ago in playlist More videos from TheJavaHub
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 5 months ago
@AngelDouche66
Think about the logic a little bit :)
While(Destination)
Do this
if (player and enemy == the same location)
Destination = false
does that help?
CaptainThrill 4 months ago
zelda ftw
Ninjason1337 5 months ago
woot! feeling closer to making a cool java game!!!
Ninjason1337 5 months ago
awesome!! :D
could you also make an AI for a pong game?
TheGawhisper 5 months ago
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.
arthurmee 5 months ago