Stormworks Bar Graph Tutorial (LUA BASICS)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 46

  • @Z4nn1N
    @Z4nn1N 5 ปีที่แล้ว +33

    Quality stuff as always.
    Mr. Nitpicker: You could have saved seconds by just multiplying the input value in Lua :D

    • @Moosey.47
      @Moosey.47 4 ปีที่แล้ว

      How do you do that?

    • @Moosey.47
      @Moosey.47 4 ปีที่แล้ว

      @@LaserTractor oh ok cool thanks i couldnt work it out

  • @RSOFT92
    @RSOFT92 5 ปีที่แล้ว +20

    I wouldn't recommend using the extra function block for the multiplication by 49.
    Writing "input1 * -49" in Line 13 instead is easier to troubleshoot and cleaner (at least in my opinion).
    Good Video though!

  • @enissp6197
    @enissp6197 5 ปีที่แล้ว +6

    oh man I came early, this is awesome

  • @klikfusion
    @klikfusion 5 ปีที่แล้ว +2

    Yay! It's up!

  • @DeepfriedChips
    @DeepfriedChips 5 ปีที่แล้ว +6

    Could use this for some cool things

  • @loeuf
    @loeuf 5 ปีที่แล้ว +2

    Can’t wait to have this on my ship!!

  • @sosnak8735
    @sosnak8735 5 ปีที่แล้ว +2

    Really good tutorial. The only thing you can improve on is hardcoding stuff in your lua draw function. You should use variables 'w' and 'h' (which are currently useless in your code) in drawRect and drawRectF to make it compatible with other monitor sizes. Anyway It is not a big deal and everything else is just perfect!

  • @tonyr.5652
    @tonyr.5652 5 ปีที่แล้ว +6

    About touchscreen it is possible to do a toggle signal from it?

    • @SgtBurned
      @SgtBurned 5 ปีที่แล้ว +3

      Boolean called Toggle. When you press the button
      Toggle != Toggle will invert it

  • @bvdpoolbear69
    @bvdpoolbear69 5 ปีที่แล้ว +1

    Awesome tutorial as per usual, thanks a bunch!

  • @allentrevino5164
    @allentrevino5164 5 ปีที่แล้ว +1

    Epic bruh-i mean bar graph tutorial

  • @snipsoe
    @snipsoe 5 ปีที่แล้ว +5

    how to make lua radar screen next???

  • @alangilankenzied.4220
    @alangilankenzied.4220 5 ปีที่แล้ว +1

    I really hope i understand lua more
    Nice tutorial MrNJ love it😅

  • @yuriibondar3757
    @yuriibondar3757 5 ปีที่แล้ว +1

    That would be cool to see touchscreen on this bars, so you can adjust throttle for example ON the screen.

    • @MrNJersey
      @MrNJersey  5 ปีที่แล้ว

      Just combine my last tutorial and this one and you can do it

  • @user-ln9tu5fy3e
    @user-ln9tu5fy3e 5 ปีที่แล้ว +1

    I wish they could add the Smile Basic language, but nice vid!

  • @blakedawson5342
    @blakedawson5342 5 ปีที่แล้ว +2

    Can you do more vehicle creations with no edits like you did on your fuel truck live stream

  • @Peekofwar
    @Peekofwar 5 ปีที่แล้ว +1

    Just write `-input*49` in the height slot in the LUA script. This will decrease delay by a tick I'd imagine.

  • @Moosey.47
    @Moosey.47 4 ปีที่แล้ว

    I just did this and it's amazing thanks NJ your the best ❤👍😇

  • @matthewgallan
    @matthewgallan 5 ปีที่แล้ว +2

    How much lag do these scripts create? I know a lot of games involving things like this can get quite laggy if you have lots of scripts running at the same time

  • @mattiasrask1575
    @mattiasrask1575 5 ปีที่แล้ว +2

    nice like Lua :) only wish Devs give us hydrophone nowe :)

  • @alflurin
    @alflurin 5 ปีที่แล้ว +2

    Good upload, but I was hoping for some more advanced stuff. Thanks anyway. Cheers!

  • @vale.44peru
    @vale.44peru 5 ปีที่แล้ว +1

    Is it possible to write “smaller letters”? In order to fit more text in a screen?

  • @ravenrxh5865
    @ravenrxh5865 4 ปีที่แล้ว

    so how do you get another bar that shows another value?

  • @billy-blij-1-2-36
    @billy-blij-1-2-36 5 ปีที่แล้ว +1

    Im really Bad at lua so when i want to make something on scheen i draw something with pantblocks and point a camera on it xD

  • @vpd5419
    @vpd5419 5 ปีที่แล้ว +1

    I was trying to convert the clock signal to a basic 24 hour but the signal that comes from the clock is between 0 and 100 . And obviously the clock is between 0 and 24. Even if i use the function to convert it to make it same with the hours im not able to make it on the minuate part because i cant separate the signal. Any idea to make a screen clock?

    • @MrNJersey
      @MrNJersey  5 ปีที่แล้ว

      It comes out from 0 to 1, just do a X*24 and it will now be 24 hours and then show the decimals

  • @movedchannel5367
    @movedchannel5367 4 ปีที่แล้ว

    how do you do this with fuel/fluid tanks? it just goes through the bar because its not 1- 0 like a battery

    • @frerkhusmann1146
      @frerkhusmann1146 3 ปีที่แล้ว +2

      I might be late, but you could use the outputs from the fluid meter by dividing the Fluid Level by the Fluid Capacity to get a number from 0 to 1, or the short answer: Fluid Level / Fluid Capacity = number from 0 to 1

  • @bobbykinsey5921
    @bobbykinsey5921 5 ปีที่แล้ว

    How would I use this to make a fuel bar? The bar needs to be 54 pixels but the tank is 13250L. How would i go about converting the number of the tank capacity to the full bar?

  • @BaileyChap
    @BaileyChap 5 ปีที่แล้ว +1

    Do a pie chart/radar!

  • @swagteck8925
    @swagteck8925 5 ปีที่แล้ว

    You are the best

  • @thespacementv1506
    @thespacementv1506 5 ปีที่แล้ว

    What if the input is more than the heigth? Dividing doesn't work...

  • @robmuzz
    @robmuzz 5 ปีที่แล้ว +9

    360P Club... I'll be back...

    • @robmuzz
      @robmuzz 5 ปีที่แล้ว

      Back. Brilliant! Thanks.

  • @MartinRussoy
    @MartinRussoy 5 ปีที่แล้ว +1

    Early squad!

  • @zacc1338
    @zacc1338 4 ปีที่แล้ว

    How du you all guys know all this stufs. Did you go in special schoo or what xD I am try tu understand it but it so hard

  • @teedal7203
    @teedal7203 4 ปีที่แล้ว +1

    *look at this graph*

  • @kraken9591
    @kraken9591 5 ปีที่แล้ว

    It is hard to see the video because of the upload quality. 360p is the highest you are allowed to view at.

    • @MrNJersey
      @MrNJersey  5 ปีที่แล้ว +6

      TH-cam takes time to render the video

  • @DeepfriedChips
    @DeepfriedChips 5 ปีที่แล้ว +1

    I'm Ninth