sketchucation logo sketchucation
    • Login
    1. Home
    2. Sgt.A.Johnson
    3. Posts
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 63
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Piston and slider are the same, but I think...

      @cphillips said:

      Sliders were in SP1 and Pistons were added in SP2. Even though they are very much the same and could have been one joint I left them in to retain backward compatibility.

      Your right that it would be useful to have such a joint.

      In the meantime you could do a few other things. One would be use a regular slider and then a thruster on the body to move it along the slider.

      Another that would allow the keyboard to work would be do something like in a piston controller.

      
      > #Formatted for clarity.
      > 
      > pos=getVar("pos");
      > pos=pos+(key("up")*0.02);
      > pos=pos+(key("down")*-0.02);
      > setVar("pos",pos);
      > pos;
      > 
      

      The last line tells the controller to set to the value of pos.

      A shorter less easy to read version of the above.

      
      > 
      > pos=getVar("pos")+(key("up")*0.02)+(key("down")*-0.02);setVar("pos",pos);pos;
      > 
      > 
      

      That is a very good code but i found a problem with the second version. I'm yet to try the first one. It ignores the min and max values when you run it

      posted in SketchyPhysics
      S
      Sgt.A.Johnson
    • RE: Toggle script (working)

      surely could you not have a controller command: togglekey('space') or something and use that as the command in future versions. it would make it alot easier for newbies and pros alike i reckon.

      posted in SketchyPhysics
      S
      Sgt.A.Johnson
    • RE: SP3x Apr3 version.

      @unknownuser said:

      ...So, once again, no mac yet?
      You always have to wait for everything on mac. My dad has one and it really annoyed me cos my pc at home wouldn't run sketchy physics and there was no sketchy physics on mac. At least i have my laptop now. not the best processor but more than enough RAM to make up for it.

      posted in SketchyPhysics
      S
      Sgt.A.Johnson
    • 1 / 1