sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Oscillator (Where to find?)

    Scheduled Pinned Locked Moved SketchyPhysics
    10 Posts 4 Posters 1.4k Views 4 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.
    • G Offline
      GoldenFrog
      last edited by

      Hello fellows. I am making a Sketchyphysics Lego game, and wanted to know how to make a character walk. I've heard the oscillator joint could be of some use, but I'm not sure where to look. Please help. Thanks

      Remember, great minds think alike, and fools never differ.

      1 Reply Last reply Reply Quote 0
      • G Offline
        GoldenFrog
        last edited by

        Thank you very much! I'll be sure to try it!

        Remember, great minds think alike, and fools never differ.

        1 Reply Last reply Reply Quote 0
        • G Offline
          GoldenFrog
          last edited by

          I tryed it, and it works. Ther's only one problem. How can I make a key control the oscillator?

          Remember, great minds think alike, and fools never differ.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hpnisse
            last edited by

            Put

            
            if key("W")==1; oscillator(50);else;0;end
            
            

            in the controller box.

            Change the key and oscillator speed by change the "W" to something else ("Space","Shift" etc) and (50) to whatever you want.

            /hpnisse

            edit:

            if you put

            if key("W")==1;oscillator((slider("Oscillator")+1)*20);else;0;end
            

            in controller box you will get a slider to adjust the speed of the oscillator when you have press the key.

            /edit

            ` /hpnisse`
            ` Windows 7 U -Sketchup 8 -SketchyPhysics 3.2-Dec2 - from Sweden`

            1 Reply Last reply Reply Quote 0
            • G Offline
              GoldenFrog
              last edited by

              Will try it, thanks so much guys!! πŸ˜„

              Remember, great minds think alike, and fools never differ.

              1 Reply Last reply Reply Quote 0
              • N Offline
                NOLASaintTM
                last edited by

                @unknownuser said:

                Will try it, thanks so much guys!! πŸ˜„

                When will the thing be done, though?

                "There are only 2 seasons in [color=#008000:29bx2alm]Louisiana[/color:29bx2alm]: [color=#BF0000:29bx2alm]Hurricane Season[/color:29bx2alm] and [color=#BF0000:29bx2alm]Summer[/color:29bx2alm]" My Models: [url:29bx2alm]http://sketchup.google.com/3dwarehouse/search?viewer=06262141413891559654&scoring=m[/url:29bx2alm] [color=#0000FF:29bx2alm]G[/color:29bx2alm][color=#FF0000:29bx2alm]O[/color:29bx2alm][color=#FFBF00:29bx2alm]O[/color:29bx2alm][color=#0000FF:29bx2alm]G[/color:29bx2alm][color=#00BF00:29bx2alm]L[/color:29bx2alm][color=#FF0000:29bx2alm]E[/color:29bx2alm]!!!

                1 Reply Last reply Reply Quote 0
                • G Offline
                  GoldenFrog
                  last edited by

                  Give me time, give me time. A sketchyphysics game has a lot of work hat needs to go into it. A reasonable etimate is sometime in the latter part of next week.

                  Remember, great minds think alike, and fools never differ.

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    NOLASaintTM
                    last edited by

                    Thanks!

                    "There are only 2 seasons in [color=#008000:29bx2alm]Louisiana[/color:29bx2alm]: [color=#BF0000:29bx2alm]Hurricane Season[/color:29bx2alm] and [color=#BF0000:29bx2alm]Summer[/color:29bx2alm]" My Models: [url:29bx2alm]http://sketchup.google.com/3dwarehouse/search?viewer=06262141413891559654&scoring=m[/url:29bx2alm] [color=#0000FF:29bx2alm]G[/color:29bx2alm][color=#FF0000:29bx2alm]O[/color:29bx2alm][color=#FFBF00:29bx2alm]O[/color:29bx2alm][color=#0000FF:29bx2alm]G[/color:29bx2alm][color=#00BF00:29bx2alm]L[/color:29bx2alm][color=#FF0000:29bx2alm]E[/color:29bx2alm]!!!

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Builder Boy
                      last edited by

                      Thank you hpnisse! Now that I know how to use keys, I made this!


                      Use the arrow keys to control it

                      All my plugins

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        Builder Boy
                        last edited by

                        I have never been able to figure out how to use the oscillator joint. Instead, I usually use the slider joint. All you have to do is make the slider the right length and then, select it and click the UI button to the left of the joint connection tool. Once you have the UI open, find the controller box.
                        Capture.png
                        Once you find the controller box, simply type oscillator(500) You can substitute 500 for any number. The higher the number, the slower the object will oscillate. I suggest starting at 500, and then fine tuning it.

                        All my plugins

                        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