Java Game Programming #7 – Collision Bounds

[ad_1]
Produce your own Java game from scratch with this very simple, yet very powerful course available right now

In this video we learn how to create collision bounds around our player. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

Have you ever wanted to create games? Have you ever gotten fed up with it being to difficult? Well now is the time to thank me and possibly subscribe because you have just found the channel for you! Game Maker Tutorials, Java Game Programming, Unity3D Tutorials, Batch, C++ and much much more! This is the channel for you, the one stop shop for an exploration of your hidden talent as a game developer. Unleash your potential and go wild with imagination when you finally figure out how to make any game you want!

Visit CodingMadeSimple for more exclusive tutorials and get the help you need to succeed as your very own indie game developer!

Follow me on twitter for exclusive content and interaction with me!

Game Maker Studio: Programming
Game Maker Studio: Tutorial
Java Programming
Game Programming
Game Tutorial
Programming Tutorial


Posted

in

by

Tags:

Comments

37 responses to “Java Game Programming #7 – Collision Bounds”

  1. JordanEqualsGuitar Avatar

    Has anyone else had an issue with dividing the width by 2 but not seeing a result?

  2. Pop Club Avatar

    My Gravity Isn't Working Anymore… 🙁

  3. AminamHD Avatar

    (width/2)-(width/2)/2 is the same as width/4

  4. [DATA_EXPUNGED] [REDACTED] Avatar

    Get me out of here right now.

  5. Nicolás Suarez Avatar

    u mirin' brah, do u know zyzz?

  6. Aaditya Avatar

    +RealTutsGML What is your real name by the way?

  7. Taylor Kohls Avatar

    Is there a reason you divided by 2 twice instead of just dividing by 4 once?

  8. Drew Avatar

    You could just ad with/4 instead of width/2 – width/2/2

  9. Vegard Fjeldberg Avatar

    Why should we make four colliding detecting boxes? As I see it, we need only one that spans the whole square.

  10. Jerstah phucku Avatar

    new Question, I have a sprite of mario that is 16×28 and I cant get the collision quite right(his head constantly gets stuck when jumping into blocks), any advice?. Or should I stick to all sprites being 32×32 and multiplicative(ex 32×64 or 64×64)? 

  11. Jerstah phucku Avatar

    does anyone have a problem with FPS dropping to 1 after a few seconds of opening? the only thing I know to check is g.dispose(); in Game.render();
    I also added g2d.dispose(); at the end of the Player.render(g); and I am still wondering why its dropping until it comes to a stop

  12. Erik the God Eating Penguin Avatar

    I have a fail-safe collision detection system. It looks at where you were the frame BEFORE you collided with the object to determine which direction you came from.

  13. theone102 Avatar

    My debug mode doesn't work, it will run the program, but not change when I make a change in the code.

  14. Rob Miller Avatar

    We are following this tutorial as a programming class project.  When we hit run, we get nothing–no pop-up window, player box, nothing.  All 20 of us independently have this same issue.

    Help!?

  15. TooT - the new Google Avatar

    Uuuhm bounds are wrong for me

  16. JDam Avatar

    MORE!
    FASTER! HARDER! STRONGER!
    NEED MORE!

  17. Lucifer Avatar

    I think the way you set your bottom and top bounds to the horizontal middle of the sprite was pretty wonky. Instead of doing x + (width/2) – ((width/2)/2) you could have simply done x+(width/4) and gotten the exact same result.

  18. Richard Tester Avatar

    watch?v=GVKdqevQRhg this video show you an easy way too get the dark gui

  19. Richard Tester Avatar

    when is the next one coming i cant wait

  20. namesarehard Avatar

    Theres a plugin for that.
    Google search.
    Or if you use ubuntu and compiz there is a setting that allows you to invert your screen color by pressing win+n.

  21. JJOULK Avatar

    You keep doing Real Tutorials, thaks

  22. RegenerationNetwork Avatar

    I ran out of space in the last comment so I will continue here: That's all the suggestions I have as of today, but I just wanted to say thank you for posting great tutorials and acting like your truly into it to help the audience understand the concepts better. Keep up the good work!

  23. RegenerationNetwork Avatar

    Hello Realtutsgml, I have been following this series for a while now and would like to give you some suggestions for your videos. First of all, your videos need more content. What I mean by this is you should either make longer videos or post more frequently. Second, you need to set up proper posting dates for each of your videos in a certain series (Ex: Monday=Java Game Programming Tutorial, Tuesday=Uplay, etc). Finally, you might want to add a suggestion poll to this series for what to do next

  24. Ryan C Avatar

    Could make it so the game automatically updates if there is a newer version avaliable?

  25. Little Monkey Avatar

    just found your channel – it's awesome. Keep up the hard work 😀

  26. RealTutsGML Avatar

    I don't see why not

  27. Tommas Witvrouwen Avatar

    Can i follow the series if i make my player not 48×96 but 32×32?

  28. Tommas Witvrouwen Avatar

    Nice tutorial these are real(y good)tuts

  29. Andrei Verdes Avatar

    very usefull ! But i have 1 question… how do you change the background of the eclipse? i only can change the text part color…

  30. Wupdog Avatar

    collision tomorrow ey, sweet

  31. PixleNinjaMC Avatar

    anyone see the coulor changing backgroound???

Leave a Reply

Your email address will not be published. Required fields are marked *