Coding Math: Episode 56 - Box Layout

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

КОМЕНТАРІ • 25

  • @retro-meister
    @retro-meister 3 роки тому +8

    Unfortunate you stopped uploading, just finished this whole series and I have to say it was one of the best I've watched on UA-cam. Everything was explained well, succinctly, with good practical examples and suggestions of where to take things on your own. Great stuff.

  • @cheekujodhpur
    @cheekujodhpur 8 років тому +3

    regular viewer...seen almost all episodes. keep it up. Very good videos

  • @AfterDarknes
    @AfterDarknes 6 років тому

    there is a small bug; maxHeight is the max height of the whole array not the individual rows. You can see this clearly take effect at 9:06. Sorry if you already pointed this out in the vid. Thanks for all the tutorials

  • @ameyshukla8857
    @ameyshukla8857 7 років тому

    Hey man. Just wanted to say, you are doing a very very awesome job. Thanks so much.

  • @sidekick3rida
    @sidekick3rida 2 роки тому

    Would love more videos!!

  • @ianluquinhas
    @ianluquinhas 8 років тому +4

    Thank you for this video!

  • @wouterkoppers
    @wouterkoppers 6 років тому

    Thanks a lot, curious what you would have taught about next!?

  • @drtt1gg3r1
    @drtt1gg3r1 7 років тому

    Wonder how I could convert this to a text box display. Such as a chat box. using (X) and (Y) doesn't help me understand the container that the rectangles are being introduced into. The rectangle are dependent on the object itself to get it's initial location. So this is my attempt.
    /// AlignText(startX, startY, _array, spacing, alignment, wrap)
    //NOTE: item.length, and item.width are assumed to be initialized by a value
    // language specific (GML) "argument#" == an argument passed to the function
    startX=argument0;
    startY=argument1;
    _array=argument2;
    spacing=argument3;
    alignment=argument4;
    wrap=argument5;
    numberOfItems=_array.size(); // assumes function returns the number of elements in array
    xpos=spacing;
    ypos=spacing;
    maxHeight=0;
    // find the tallest item in the group
    // that will be where the bottom is.
    for(i=0;i

  • @blendlight5860
    @blendlight5860 5 років тому

    Thank you for video.
    How to add vertical scroll?

  • @sumitwadhwa2569
    @sumitwadhwa2569 8 років тому +1

    Hey to be honest, I didn't get most of it, is there anything wrong with my mathematics? What should I do to improve it?

    • @Mattipedersen
      @Mattipedersen 6 років тому

      I was in the same position myself. I honestly couldn't remember at least 1/2 of the math I learned in High School. However, I did manage to surprise myself when it came to how fast I was able to pick everything back up once I started going through the various math subjects, etc.
      Anyways, I've been going through the Math Tutorials at kahnacademy.com (Algebra I & II, Geometry, Trigonometry, Pre-Calculus, Calculus, physics, etc).
      You might want to give it a try, if you haven't already.
      Good Luck, Bro!!!

  • @coolfunmario
    @coolfunmario 8 років тому

    Great job as usual !

  • @kamoroso94
    @kamoroso94 8 років тому +1

    This is awesome! You could make a method for displaying text using a font in a spritesheet or something.

    • @codingmath
      @codingmath  8 років тому +1

      Hadn't thought about that, but sure, text would work too. Each character has a width.

    • @Aejums
      @Aejums 8 років тому

      And this is where arguments about kerning and ligatures start. :)

    • @codingmath
      @codingmath  8 років тому

      or "discussions" :)

    • @Aejums
      @Aejums 8 років тому

      Hey now, argument isn't a bad word in my dictionary.

  • @israelRaizer
    @israelRaizer 8 років тому

    Good video as always!

  • @naraksama3903
    @naraksama3903 2 роки тому

    There are episodes 57 and 58, but they aren't in this playlist. Go to his channel.

  • @mrnissendk
    @mrnissendk 8 років тому

    you could use a switch statement instead of an if statement to alignment

  • @p1nesap
    @p1nesap 8 років тому

    Did you find a new job? I remember a year or so ago you said you were looking.

  • @ashutoshrautela3454
    @ashutoshrautela3454 7 років тому

    Interesting