'Java Programming Tutorial'| 'Super Mario Game' #20 | Goomba Enemy

preview_player
Показать описание
Welcome to episode 20 of our mario game in java tutorial! This episode, we implement goombas into our game.

If you enjoyed the video, leave a like, a comment, and subscribe! If somebody you know is interested in learning to program in java, please send them this tutorial!

Intro Music: Knife Party - Centipede
Outro Music: K-391 - Hang Loose

Stay tuned for more videos! :D
Рекомендации по теме
Комментарии
Автор

Really enjoyed it. Really starting to get this.

Thx

AndresBadilla
Автор

I get this error:
Exception in thread "Thread"
at Source)
at Source)
at Handler.tick(Handler.java:31)
at Game.tick(Game.java:140)
at Game.run(Game.java:110)
Whenever my player approaches the Goomba and mushroom the game freezes. Do you know why? This wasn't happening when it was jst the mushroom, it started happening after I added Goomba

Izuru
Автор

After my character grabs the mushroom, it always gets stuck on the right wall and then slides to the outside of the map. I tried using the setX(tpx-width) and setY(tpy-height) but it didn't seem to do any good. Any idea what it could be?

wacksaturn
Автор

Thank God! I couldn't read anything you were typing on that other laptop. I had to keep stopping going back and listening to what you said like ten times. lol. Great tutorials bud!

kennyfreeman
Автор

Ya know what?? I PROGRAMMED MY GOOMBA MYSELF!

arjavgarg
Автор

My player can't move anywhere like he stick at it, after I touch the mushroom or goomba please help?

leinah
Автор

I get an error everytime my player dies.

Error:

Exception in thread "Thread"
at Source)
at Source)
at
at
at
at java.lang.Thread.run(Unknown Source)

Do you know why this is?

Jynxish
Автор

What happened to the frame variables?They are no longer declared in the Player class! Where did you declare them??? Plz help!!!

Izuru
Автор

Found something while messing with this a simple thing but could help a little, instead of checking goomba's id again if you did you can leave it out and just check the Id.goomba one time and then type your else if statements;

templeOfChrist
Автор

Nvm, just missed a bracket. Really good tutorial btw! :D

elwirajohansson
Автор

Hey bud I really enjoy your videos, thanks a lot. However I have an issue I can't figure out. Whenever I have anything move like the mushroom and goomba for some reason they are splitting in two. I didn't worry much when it was a mushroom, because mine was actually a potion instead so it didn't need to move. Not that its a bad guy though I don't want two of them every time I try to make one. Any ideas?

kennyfreeman
Автор

My player won't spawn for some reason. My mushroom and goomba will spawn but not my player, and because of this the camera just snaps to the top left corner of the level and doesn't move. Has anyone else had this issue or is it just me and if anyone has found a fix to it, I'd appreciate it very much if you'd share it with me. In the mean time, I will keep trying to solve the problem.

RoboTheKing
Автор

Alright trying to troubleshoot this problem for a while now, for some reason my goomba is ending up on the top right corner my player sprite, and mushroom sprite are both fine they are where they should be when game is started.

templeOfChrist
Автор

I don't know if you are still replying but how will get the goomba to not fall off a cliff

said
Автор

Am i the only one getting a Any ideas how to fix it??

Peanut
Автор

What happened to tthe variable animate?

Izuru
Автор

putting the entity linked list for loops in the player class is extremely inefficient. Instead, place each for loop in each of the respective classes, linking the id to id.player
Make sure that the player is sent to the front of the linked list, so the for loop only needs to loop once. In the handler class, use the distance from the player's x value to the entity's x value, to only let the separate entity methods tick while you are within a certain range.

then you can speed up the movement of the player by calling its tick method multiple times in the handler class, without heavily increasing lag.
before I did this, i could only add 6-10 entities before I lagged out. Now I can pretty much add one for every single block on my level.

ryanwalsh
welcome to shbcf.ru