Lua Build Series - Touch Screen Menu - Stormworks

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ค. 2024
  • Join MrNJersey where he shows you how to build a simple touch screen menu here in Stormworks in the 4th episode of the LUA Build Series.
    👨‍👩‍👦‍👦MrNJersey Gaming Offical Discord Server: / discord
    👕MrNJersey Gaming Offical Merch: tspr.ng/c/nj-gaming-official-...
    🐦MrNJersey Twitter: / mrnjersey
    🧡MrNJersey Patreon Page: / mrnjersey
    STORMWORKS: BUILD AND RESCUE
    Join a world where you design, create and pilot your own sea-rescue service. Release your inner hero as you battle fierce storms out at sea to rescue those in need. Stormworks: Build and Rescue is a rich and dramatic physics playground. Take your custom-designed, block-based and programmable vehicles into fierce oceanic storms. Plan and execute thrilling rescues in a variety of challenging crisis scenarios. Export and share your meticulously designed vehicles and missions with other players via the Steam workshop. Stormworks: Build and Rescue - create, rescue and release your inner hero! Stormworks: Build and Rescue - Create, Rescue and release your inner hero!
    Workstation & Gaming PC: www.amazon.co.uk/shop/mrnjers...
    Audio Setup: www.amazon.co.uk/shop/mrnjers...
    Please note that links above are affiliate links -- clicking them earns me a small commission if you make a purchase and helps support my TH-cam channel. Thank you!
    Intro Audio: Holy Tension Batman (TH-cam Audio Library)
    Series Audio: Night Snow (TH-cam Audio Library)
    Outro Audio: They Might Not - Puddle of Infinity (TH-cam Audio Library)
  • เกม

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

  • @kmous
    @kmous 4 ปีที่แล้ว +80

    I am just following word by word your advises.......I am adding all of this to my creation. Thanks for teaching me LUA NJ (Isn't he the best guys)!!!

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

      He is indeed the best!

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

      He is legendary!

    • @averymarley663
      @averymarley663 4 ปีที่แล้ว +2

      I have learned so much from this guy

    • @r50142
      @r50142 3 ปีที่แล้ว +1

      its actually Lua StW.
      The regular lua is basic.
      But anyways, spelling doesnt matter!
      Good luck!

    • @kristophia7310
      @kristophia7310 3 ปีที่แล้ว

      @@r50142 err your code failed you misspelled something

  • @martinriggs3816
    @martinriggs3816 4 ปีที่แล้ว +12

    just what I've been waiting for!

  • @VYMForU
    @VYMForU 4 ปีที่แล้ว +23

    This content is so helpful!

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

    When I saw the touch screen in the SR-71 it blew my mind
    the first time I spent in this game (>30 hours in the first 2 days) just made me more and more impressed with how much different content this game has, aswell as how deep alot of it goes

  • @gamerlegendlex3684
    @gamerlegendlex3684 4 ปีที่แล้ว +2

    I have been waiting for this! Thank you!

  • @user-yr1zv2pq6k
    @user-yr1zv2pq6k 3 ปีที่แล้ว +3

    You explain everything so well and clearly that I understand everything, even though it is not my native language.

  • @toast3
    @toast3 4 ปีที่แล้ว +9

    That moment when you tried to add another output to the Read Bool from Composite... Considering we can *write* to multiple channels starting at an arbitrary one, it's silly we can't do the exact same thing with reading them! Good series though. Maybe this is overkill, but considering how many times you need to copy the x, y, width, and height for a button, it might be worth saving those values to a table, and having functions to extract and use them.

  • @Dj_Soundwave
    @Dj_Soundwave 4 ปีที่แล้ว +2

    I just started up my game 😅 perfect timing. Thank you so much!

  • @nomadredz
    @nomadredz 4 ปีที่แล้ว +14

    Hey MrNJ can you teach us how to make logo on lua loading screen

  • @CharizardLMAO
    @CharizardLMAO ปีที่แล้ว

    Ty for the tut man! This will come in handy in my planes and vehicles!

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

    Love the vids, keep it up

  • @jahnringereide
    @jahnringereide 4 ปีที่แล้ว +8

    Thanks for the guides man! Can you do some more on menues, like directories? I've spent the better part of a day trying to work out how and am slightly losing grip on reality.

  • @neoandroid4203
    @neoandroid4203 4 ปีที่แล้ว +15

    MRN Jersey can you do a video on interiors or interior help? Thanks!

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

    Thank you sooooo much I needed this but I also need the next one

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

    Thanks very useful

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

    good job with those vids

  • @neon14949
    @neon14949 4 หลายเดือนก่อน

    Good tutoriel i liked !keep good work

  • @seadragon8546
    @seadragon8546 2 ปีที่แล้ว

    Thx man really helped

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

    Using this to make my operating system that will be on the workshop!!!

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

    Iv been needing a tutorial on this for ages aha

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

    OMG thanks for making this it is so helpfull

  • @chezertonchez6985
    @chezertonchez6985 4 ปีที่แล้ว +2

    Tip: if you wanna toggle something then use a push to toggle logic and then connect the microcontroller output to the push to toggle logic then to what you want. You’ll understand when you see it

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

    i like this m8

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

    you give me lots of ideas

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

    funny little "uoh" at 6:59 😅

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

    Love this serios

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

    finally something that i can put my fingers on

  • @elrondmcbong467
    @elrondmcbong467 2 ปีที่แล้ว

    Without your tutorials, this game would be much less fun for most of us, Thank you.

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

    We want build series !!!!

  • @literallythebestgamereverfr
    @literallythebestgamereverfr 2 ปีที่แล้ว

    by the way, you can add a push to toggle in between the lights to toggle it

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

    I have question. Can you do VTOL tutorial? You’ve done VTOL tutorial but with propellers and could you do it with jet engines. I would be really happy 😃 And obviously another amazing video 😁

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

    Could you make a vid that does it so if you press the light button it stays on until you press it again. And put a gimbal cam on the background and add the buttons to move and zoom the cam. Also can you make an artificial horizon with speed and altitude for planes. I know it’s a lot but you can spread it out In vids. Thanks

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

    Can you make a video about ship stabilizer using fins?

  • @KuzakoTheAvali
    @KuzakoTheAvali ปีที่แล้ว

    So using this to try adding a screen to a project I am working on and having an issue where after switching screens they still use inputs from one another. Any help or advice would be appreciated

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

    I have an idea for a cool menu, you can switch between engine stats, start, and gearbox, a map, screen customization (Color and brightness), and the main menu.
    Do you think it would be possible?

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

    How to reset to menu? If I make a menu let's say cameras, if you klick that you get like 6 boxes like cam 1 cam 2 etc... How to reset back to the main menu?

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

    NJ is there anyway I can copy and paste it from google or something? Like are there websites

  • @davidlawand2805
    @davidlawand2805 5 หลายเดือนก่อน

    how could i make it so that the touch for the light is a toggle and not just push?

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

    Yaayy tutorials

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

    mace a counsel so you can type commands into the console and control stuff on your ship

  • @thegdog368
    @thegdog368 ปีที่แล้ว

    how do i have it output on multiple channels if pressed

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

    i cant seperate my buttons: i have 2: if i press the first button both get activated, if i press the second nothing happens
    uptade: i spererated the buttons: now if i press button 2 it works, if i press button 1 both get activated still

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

    NJ can you do a quick vid to change it to toggle please ❤😋👍

  • @ironphilly2366
    @ironphilly2366 2 ปีที่แล้ว

    i need help with a reverse switch box

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

    Hey Dude can you please do a new ship build please???? Also can you please finish the train project?

  • @itsurboikbboi4128
    @itsurboikbboi4128 3 ปีที่แล้ว

    I tried but it wouldn’t type the t and instead of the thing working it made me write random words and symbols like I press d it writes -

  • @FLiNakBismuth
    @FLiNakBismuth 3 ปีที่แล้ว

    How do i place a microcontroller

  • @daytoncoles
    @daytoncoles ปีที่แล้ว

    Oh name I done it ITS MIDNIGHT BLIMEY

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

    I messed up I had a screen with my engine stats and well they where messing me up but I fixed that but I didn't have my touch composite from my screen and it took me like 30 min of trying everything in the book I have it to where I presed a button beside the screed and it wold switch to about her Lau so it wold not mess with the stats but no it was just that lol

  • @daytoncoles
    @daytoncoles ปีที่แล้ว

    Help I finished the touch screen but the light won't turn on

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

    Can you do a tutorial on how to have the touch act as a switch instead of a button

    • @Dj_Soundwave
      @Dj_Soundwave 4 ปีที่แล้ว +2

      Place I push to toggle between the output and Light input (in your micro controller)

    • @TtEL
      @TtEL 4 ปีที่แล้ว +2

      You have to use a push to toggle block. It can either be inside or outside the Microcontroller. Inside the Microcontroller instructions: Have the push to toggle be in between the output from the Lua block to the light output node. Outside microcontroller: Have the push to toggle in between the Light activation node and the Microcontroller Light Toggle node.

  • @beachswanson4347
    @beachswanson4347 3 ปีที่แล้ว

    Hmm, how do I make it toggle?

  • @FLiNakBismuth
    @FLiNakBismuth 3 ปีที่แล้ว

    I wase serching in the inventory it wasint there

  • @EldarKhaitov
    @EldarKhaitov 3 ปีที่แล้ว

    Can I set video layers? E.g. text or button on camera display?

  • @Green_Bay_Packers_fan747
    @Green_Bay_Packers_fan747 6 หลายเดือนก่อน

    How do i copy/paste!?

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

    Hey MrNjersey, I had a question, I am planning on to buy a new gaming laptop because my old one can't handle StormWorks very well, my question was if you know what would be good for StormWorks like the cpu what ghz and how many cores, and what type of gpu you would recoment, ofc idk if you know what would be best, but if you do i would like to know it! thanks in advance!

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

      4 cores or more with highest possible clock speeds, good gpu and 8gb of memory. See my specs in videos for comparison

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

      @@MrNJersey Thanks a lot for the answer! I didn't know what was good for StormWorks, but now I have a idea of whats good!

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

      Ik zou voor 16g ram gaan. Ga je in de toekomst meer uit halen. Zeker bij zware creations

  • @ENG-CT4982
    @ENG-CT4982 2 ปีที่แล้ว

    T o u c h é

  • @JerseyAir
    @JerseyAir 3 ปีที่แล้ว +1

    For some reason the word Light is backwards on the screen and i dont know why.

    • @11Tits
      @11Tits 3 ปีที่แล้ว +1

      replace the screen and before you place it press "i" that will flip the screen and the data that will appear on it

  • @aventurasdegaby3882
    @aventurasdegaby3882 2 ปีที่แล้ว

    Hi NJ can I put the stormworks dis in your dis NJ?????

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

    Could you also make functions for different "screens" in the display? Like not a tutorial, but is that something that could be done? I know java would be public void Screen1(Screen screenIn){
    screenIn.drawText(x, y, text);
    }
    Screen being the type of object that they use.

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

      also you can just use video switchboxes now that i think of it

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

      function createButton(screen)
      screen.drawText(2, 2, "test!")
      end
      function onDraw()
      w = screen.getWidth()
      h = screen.getHeight()
      createButton(screen)
      end
      that works, that means you can make something easy to create a button, you could put in a string for the title of it and the pos

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

      Now that i think of it lua is very confusing, how does it know if its looking for an object or item? how does it know if you are trying to put an int or a float in? how does it know between "screen" and "text"? i guess its just whatever you put in and if it isnt right there is an error

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

    A little late to the party but, I don't know if you planned to this down the road, but an advanced touchscreen would do wonders. I've gone off your menu builder tutorial, but once you switch screens, the previous touch-select rectangles are still present, just not drawn in. So if it's just a simple fix, let me know, I can link the lua setup to you if it'll help, TIA.

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

      Had this same problem. Solution is using composite switchboxes just like the video switchboxes.

    • @norgeek
      @norgeek 3 ปีที่แล้ว

      @@wimlekxs4443 THANK YOU

    • @labu5605
      @labu5605 3 ปีที่แล้ว

      @@wimlekxs4443 How exactly do I have to use the composite switchboxes. I've tried to figure that out for 2 hours now

    • @Cat_Lover1301
      @Cat_Lover1301 ปีที่แล้ว

      @@wimlekxs4443 (same problem) How do you use the switchboxes?

  • @thusharikabotheju5655
    @thusharikabotheju5655 3 ปีที่แล้ว

    Halp plz How to make it togle

  • @xljedi2335
    @xljedi2335 3 ปีที่แล้ว

    Neither of your LUA touch screen examples show how to make those buttons work like toggle buttons. So I need the onscreen rectangle to stay in the "pressed" visual state, and I need the light to stay on. Do you have something that shows how to make these touchscreen buttons work like toggle buttons?

    • @labu5605
      @labu5605 3 ปีที่แล้ว

      Toggling itself is quite easy. Just use a "Push to toggle" in your microcontroller

    • @xljedi2335
      @xljedi2335 3 ปีที่แล้ว

      @@labu5605 There's considerably more to it if trying to incorporate toggle buttons in a Lua touchscreen; but I managed to figure it out.

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

    It will not work for me

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

    No action?

  • @Green_Bay_Packers_fan747
    @Green_Bay_Packers_fan747 6 หลายเดือนก่อน

    Nvm i got it :D

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

    Does this work for engines too

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

      It does, but only if you can program that engine with Lua.

  • @labu5605
    @labu5605 3 ปีที่แล้ว

    Hey, after 2 hours of researching and thinking I decided to post my question here: I want to make a menu that toggles the screens just as in the video but the camera (as an example) is supposed to stay on screen until the user presses a "back" button. So far I've managed to let the camera stay there by using a "Push to Toggle" and I've also managed to implement the "back" button. The only problem I still have is that the buttons from the menu "camera, light, etc." stay in the background and I can still click on them. I'm looking for a way to disable these buttons as long as the camera view is on. I hope someone can help.

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

      Make sure you have another menu for the camera screen. So you will need two menus. One for home and then one for when your on you camera screen

    • @labu5605
      @labu5605 3 ปีที่แล้ว

      @@MrNJersey Thanks but I already have that. The problem is that the old buttons from the main menu are still touchable altjough they are not visible because the camera is "on top of them".

    • @M4RC90
      @M4RC90 3 ปีที่แล้ว

      @@labu5605 The composite signal that comes from the screen still goes to all the LUA blocks, so they all interpret it. You need some composite switchboxes to route the composite signal only to the LUA script that's responsible for the currently active screen. (Sadly there's no composite junction like there is for number signals, that would be really helpful here)
      Okay this all assumes you're having separate LUA scripts for each menu. You can do it all in one LUA script, but then you need some additional logic to detect which menu is currently active and what buttons are on that menu.

  • @daytoncoles
    @daytoncoles ปีที่แล้ว

    IM BEEN TRYING FOR 1 HOUR I STARTED AT 17:00

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

    Salut peux-tu faire une série ou tu fais un porte-avion ultra grand avec des systèmes ultra compliqué mais un porte-avions très très grand les avions de chasse c'est toi qui les fais toi-même et ça c'est cool que tu t'inspire un peu du porte-avions Charles-de-Gaulle

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

      C'est quoi ton délire ?

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

      Merci, mais les grosses créations provoquent beaucoup de ralentissements. Mais je garderai cela à l'esprit.

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

    Espero no ser el único hispano que esté viendo este video :c

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

    if a person can't write the same function himself he should learn it since it is an elementary thing

  • @dercorta-noyokamiboyteenpr2166
    @dercorta-noyokamiboyteenpr2166 4 ปีที่แล้ว

    could you check out the workshop stuff from aome railways? he/she is making pretty good stuff ^^

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

    heh