Oscillator (Where to find?)
-
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
-
Thank you very much! I'll be sure to try it!
-
I tryed it, and it works. Ther's only one problem. How can I make a key control the oscillator?
-
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
-
Will try it, thanks so much guys!!
-
-
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.
-
Thanks!
-
-
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.
Once you find the controller box, simply typeoscillator(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.
Advertisement