How To BUILD YOUR OWN LEVEL - Platformer Tutorial EXTRA

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 26

  • @KaarinGaming
    @KaarinGaming  Рік тому +5

    Hey everyone!👋
    Many of you have requested a video on how to make levels for the platformer tutorial.
    This is that video! 😎
    I hope you enjoy!
    Cheers!🤠

  • @carljohncafe6921
    @carljohncafe6921 10 місяців тому +5

    Hey man! Thank you for posting this tutorial! People like you make this world a better place!!!!

  • @Coygarsenal
    @Coygarsenal Рік тому +4

    Hey Kaarin, I just wanted to thank you so much for this amazing series so far! Absolutely brilliant !!! Thank you. I was wondering if there was a way to be able to randomly spawn objects while in the game or if that requires a lot of work? You’re the bestttttttt

    • @KaarinGaming
      @KaarinGaming  Рік тому

      Yes you can!
      Requires some coding of course. :D

  • @samg5183
    @samg5183 Рік тому +5

    man!!! i tell you that days ago!! thank you so much, you are best

  • @strastanovichovski4759
    @strastanovichovski4759 Рік тому

    What settings for the pencil did you use to make the drawing of the ground pixel-perfect at 15:50?

  • @mr.kabumbo5181
    @mr.kabumbo5181 Рік тому +4

    the man who is teaching me more then my profs

  • @nabman5619
    @nabman5619 2 місяці тому

    Great video. I think there should be a way to just import those pics into GIMP and then paint your boards? I don't know just guessing.

  • @soawesomekrl
    @soawesomekrl Місяць тому

    How do you make a 26x164 level? what changes needed to be d one?

  • @tsukidaku5562
    @tsukidaku5562 Рік тому

    Can I ask why even though I added tile or enemies colors in GIMP and override it it won’t appear, I also refresh it before I play.

  • @haryanagrande9847
    @haryanagrande9847 Рік тому +1

    I'm still getting the glitch that sometimes the movement doesn't work, but on restarting it works fine. Saw all the codes, still nothing changed. Someone please help, its frustrating.

  • @imjayvieeeee
    @imjayvieeeee Місяць тому +1

    hello where did you make tiles for the game?

    • @KaarinGaming
      @KaarinGaming  Місяць тому

      Link to where assets are from, can be found in the description.

  • @koarhai5586
    @koarhai5586 Рік тому +3

    Bro ur G.O.A.T.❤

  • @HimanshuKumar-ns8cx
    @HimanshuKumar-ns8cx 5 місяців тому

    How to convert this project into jar file audio and image file are giving null pointer error in jar file

  • @chetanmankar343
    @chetanmankar343 9 місяців тому

    I am having the problem with creating runnable .jar file. Can anyone help.

    • @HksjJkdkd
      @HksjJkdkd 9 місяців тому

      What exactly is the problem ?

  • @Sgt_FiFF
    @Sgt_FiFF Рік тому +2

    Whoop

  • @Rahulyadav-sd3oj
    @Rahulyadav-sd3oj 9 місяців тому

    please share the source code for this

  • @darkquivalent5261
    @darkquivalent5261 Рік тому +3

    Hello, i have big problems with this method: GetEntityYPosUnderRoofOrAboveFloor. just try to make player or enemy hitbox.height >32 and i think u will understand

    • @KaarinGaming
      @KaarinGaming  Рік тому +3

      Hey
      The code is not designed to handle entities bigger than a tile. If you wish to do that, you need to change the code.

    • @darkquivalent5261
      @darkquivalent5261 Рік тому +1

      i solve this problem. i think that will be correct:
      public static float GetEntityYPosUnderRoofOrAboveFloor(Rectangle2D.Float hitbox, float airSpeed) {
      int difYandHeight = (int) hitbox.height;
      while (difYandHeight > 32)
      difYandHeight-=32;
      // this while for 64 and more height
      int currentTile = (int) ((hitbox.y + hitbox.height - difYandHeight) / Game.TILES_SIZE);
      if (airSpeed > 0) {
      int tileYPos = currentTile * Game.TILES_SIZE;
      int yOffset = (int) (Game.TILES_SIZE - hitbox.height);
      return tileYPos + yOffset - 1;
      } else
      return currentTile * Game.TILES_SIZE;
      }
      and enemy.updateInAir :
      protected void updateInAir(int[][] lvlData) {
      if (CanMoveHere(hitbox.x, hitbox.y + fallSpeed, hitbox.width, hitbox.height, lvlData)) {
      hitbox.y += fallSpeed;
      fallSpeed += gravity;
      } else {
      inAir = false;
      hitbox.y = GetEntityYPosUnderRoofOrAboveFloor(hitbox, fallSpeed);
      int difYandHeight = (int) hitbox.height;
      int count = 0;
      while (difYandHeight > 32) {
      difYandHeight -= Game.TILES_SIZE*1.3f;
      count++;
      }
      tileY = (int) (hitbox.y / Game.TILES_SIZE) + count;
      }
      }

    • @darkquivalent5261
      @darkquivalent5261 Рік тому

      sorry, without 1.3f there difYandHeight -= Game.TILES_SIZE*1.3f;