• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Toggling Thrusters?

Scheduled Pinned Locked Moved SketchyPhysics
8 Posts 5 Posters 917 Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    BLANK
    last edited by BLANK 1 Aug 2009, 11:25

    Hi. The whole SP3 thing is a huge improvement over the previous one and there doesn't seem to be a "SP For Dummies: Toddler Edition" anywhere that explains the scripts in plain english.

    So I was wondering if there's a way of turning on/off a thruster with a keystroke? I understand that it's possible (with Wacov's code) for emitters, but not the same case for thrusters. Tried my best with the guessing, but no success. Help?

    If only the Yakuza had heard of Australia... [url=http://sketchup.google.com/3dwarehouse/details?mid=cd46471677a3e490b8f4e95477ed5df:21uuz2ul]Ford Falcon sedan conversion[/url:21uuz2ul] [img:21uuz2ul]http://lh5.ggpht.com/_DXlDhsgmn6Q/S2Qi2PU4IJI/AAAAAAAAAuE/AqSICmCNiS4/s800/Untitled-1.jpg[/img:21uuz2ul]

    1 Reply Last reply Reply Quote 0
    • P Offline
      phy
      last edited by 1 Aug 2009, 12:36

      Yes there is a toggle script. http://sketchyphysics.wikia.com/wiki/Advanced by Wacov.

      Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

      1 Reply Last reply Reply Quote 0
      • B Offline
        BLANK
        last edited by 1 Aug 2009, 13:09

        That does work, but I don't know how to set the speed/force. Help?

        If only the Yakuza had heard of Australia... [url=http://sketchup.google.com/3dwarehouse/details?mid=cd46471677a3e490b8f4e95477ed5df:21uuz2ul]Ford Falcon sedan conversion[/url:21uuz2ul] [img:21uuz2ul]http://lh5.ggpht.com/_DXlDhsgmn6Q/S2Qi2PU4IJI/AAAAAAAAAuE/AqSICmCNiS4/s800/Untitled-1.jpg[/img:21uuz2ul]

        1 Reply Last reply Reply Quote 0
        • J Offline
          JaViXP
          last edited by 12 Aug 2009, 22:31

          For thrusters... I am not sure.

          Try using this in 'onTick'

          push(1)
          

          Note: You can change the 1 for the value you want.

          "Giving up is way harder than trying"
          JaViXP's Rendering

          1 Reply Last reply Reply Quote 0
          • M Offline
            MrPlanet
            last edited by 13 Aug 2009, 07:32

            (if frame==1;setVar("repeat",0);setVar("toggle",0);end;if key("space")==0;setVar("repeat",1);getVar("toggle");elsif getVar("repeat")==0;getVar("toggle");elsif getVar("toggle")==0;setVar("repeat",0);getSetVar("toggle",1);else;setVar("repeat",0);getSetVar("toggle",0);end;)*1
            
            

            The '1' at the end is thruster power
            Space is the keystroke

            Now i can haz catnipburger? 🤣

            I reject your reality and substitute my own.

            1 Reply Last reply Reply Quote 0
            • P Offline
              Physicsguy1
              last edited by 13 Aug 2009, 07:37

              So you want to toggle a thruster? If you are using Wac's script, remember that the output is getVar('toggle'). I would suggest putting this in the thruster script field: getVar('toggle')*value.

              1 Reply Last reply Reply Quote 0
              • B Offline
                BLANK
                last edited by 13 Aug 2009, 12:35

                Thank you all for your input.

                @unknownuser said:

                *value

                @unknownuser said:

                *1

                Damn, it's that pesky little star that I kept forgetting about...

                @unknownuser said:

                Now i can haz catnipburger?

                Why, yes.

                http://images.inmagine.com/img/bananastock/bs212/vic056.jpg

                Help yourselves.

                If only the Yakuza had heard of Australia... [url=http://sketchup.google.com/3dwarehouse/details?mid=cd46471677a3e490b8f4e95477ed5df:21uuz2ul]Ford Falcon sedan conversion[/url:21uuz2ul] [img:21uuz2ul]http://lh5.ggpht.com/_DXlDhsgmn6Q/S2Qi2PU4IJI/AAAAAAAAAuE/AqSICmCNiS4/s800/Untitled-1.jpg[/img:21uuz2ul]

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MrPlanet
                  last edited by 13 Aug 2009, 19:33

                  Mmmmmmm... Catnip 🤣 🤣 🤣

                  I reject your reality and substitute my own.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement