Lua Build Series - Touch Screen Menu - Stormworks

Поделиться
HTML-код
  • Опубликовано: 25 июл 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 RUclips channel. Thank you!
    Intro Audio: Holy Tension Batman (RUclips Audio Library)
    Series Audio: Night Snow (RUclips Audio Library)
    Outro Audio: They Might Not - Puddle of Infinity (RUclips Audio Library)
  • ИгрыИгры

Комментарии • 111

  • @kmous
    @kmous 4 года назад +81

    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

  • @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.

  • @nomadredz
    @nomadredz 4 года назад +14

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

  • @gamerlegendlex3684
    @gamerlegendlex3684 4 года назад +2

    I have been waiting for this! Thank you!

  • @Dj_Soundwave
    @Dj_Soundwave 4 года назад +2

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

  • @jahnringereide
    @jahnringereide 4 года назад +9

    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.

  • @CharizardLMAO
    @CharizardLMAO Год назад

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

  • @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.

  • @alfiepearce23
    @alfiepearce23 4 года назад

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

  • @elliotburrows
    @elliotburrows 4 года назад +1

    Love the vids, keep it up

  • @m9nta534
    @m9nta534 4 года назад +1

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

  • @neon14949
    @neon14949 5 месяцев назад

    Good tutoriel i liked !keep good work

  • @madvent9090
    @madvent9090 4 года назад +1

    Thanks very useful

  • @seadragon8546
    @seadragon8546 2 года назад

    Thx man really helped

  • @neoandroid4203
    @neoandroid4203 4 года назад +15

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

  • @ReynSquared
    @ReynSquared 4 года назад +1

    good job with those vids

  • @christiaanscholte329
    @christiaanscholte329 4 года назад

    OMG thanks for making this it is so helpfull

  • @MadScotsman05
    @MadScotsman05 4 года назад +1

    Iv been needing a tutorial on this for ages aha

  • @rongerber2970
    @rongerber2970 4 года назад +1

    funny little "uoh" at 6:59 😅

  • @asheolympus9241
    @asheolympus9241 4 года назад

    you give me lots of ideas

  • @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

  • @ReynSquared
    @ReynSquared 4 года назад +1

    i like this m8

  • @gavinwhite2690
    @gavinwhite2690 4 года назад +1

    Love this serios

  • @elrondmcbong467
    @elrondmcbong467 2 года назад

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

  • @thatguyagain8476
    @thatguyagain8476 4 года назад

    finally something that i can put my fingers on

  • @bigsmoke9486
    @bigsmoke9486 4 года назад

    We want build series !!!!

  • @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 😁

  • @literallythebestgamereverfr
    @literallythebestgamereverfr 2 года назад

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

  • @gamanta433
    @gamanta433 4 года назад

    Can you make a video about ship stabilizer using fins?

  • @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

  • @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

  • @Moosey.47
    @Moosey.47 4 года назад

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

  • @Moosey.47
    @Moosey.47 4 года назад

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

  • @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?

  • @thegdog368
    @thegdog368 Год назад

    how do i have it output on multiple channels if pressed

  • @sevy979
    @sevy979 4 года назад +1

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

  • @biglwrab9634
    @biglwrab9634 4 года назад

    Yaayy tutorials

  • @davidlawand2805
    @davidlawand2805 5 месяцев назад

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

  • @EldarKhaitov
    @EldarKhaitov 3 года назад

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

  • @ironphilly2366
    @ironphilly2366 2 года назад

    i need help with a reverse switch box

  • @DOOD317
    @DOOD317 4 года назад

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

  • @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

  • @FLiNakBismuth
    @FLiNakBismuth 3 года назад

    How do i place a microcontroller

  • @daytoncoles
    @daytoncoles Год назад

    Oh name I done it ITS MIDNIGHT BLIMEY

  • @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

  • @Green_Bay_Packers_fan747
    @Green_Bay_Packers_fan747 6 месяцев назад

    How do i copy/paste!?

  • @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 -

  • @ramshorts2052
    @ramshorts2052 6 дней назад

    6:35 i wanted to see if i stopped the tutorial and tested it right there and it gave me a toggelable blue error screen

  • @beachswanson4347
    @beachswanson4347 3 года назад

    Hmm, how do I make it toggle?

  • @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.

  • @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

  • @FLiNakBismuth
    @FLiNakBismuth 3 года назад

    I wase serching in the inventory it wasint there

  • @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

  • @aventurasdegaby3882
    @aventurasdegaby3882 2 года назад

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

  • @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.

  • @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

  • @thusharikabotheju5655
    @thusharikabotheju5655 3 года назад

    Halp plz How to make it togle

  • @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?

  • @ENG-CT4982
    @ENG-CT4982 2 года назад

    T o u c h é

  • @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.

  • @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.

  • @idontremember69
    @idontremember69 4 года назад

    No action?

  • @gamerwarrior6958
    @gamerwarrior6958 4 года назад

    It will not work for me

  • @Green_Bay_Packers_fan747
    @Green_Bay_Packers_fan747 6 месяцев назад

    Nvm i got it :D

  • @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.

  • @dercorta-noyokamiboyteenpr2166
    @dercorta-noyokamiboyteenpr2166 4 года назад

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

  • @daytoncoles
    @daytoncoles Год назад

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

  • @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

  • @ReynSquared
    @ReynSquared 4 года назад +1

    heh