How to set retraction of Piston?

  • snickepie95
    23rd Oct 2014 Member 0 Permalink

    Hey,

     

    I want to set the retraction of a piston to 20pixels per spark while it only extends 1pixel per spark...

    How to do so?

     

    Thank you!

  • jacob1
    23rd Oct 2014 Developer 0 Permalink
    @snickepie95 (View Post)
    make the piston 20 pixels long and spark it at the very end, that way it will extend / retract that far each spark.
  • snickepie95
    23rd Oct 2014 Member 0 Permalink

    @jacob1

     

    like I said... I want it to retract 20px per NSCNspark and extend 1px per PSCNspark

  • jacob1
    23rd Oct 2014 Developer 0 Permalink
    @snickepie95 (View Post)
    hmm, I guess I misunderstood that then. Make the PSCN at the very beginning (as if the PSTN was only 2 pixels long), how far it extends / retracts depends on where along the piston the spark is.

    You might need to put something like DMND on the other end to make sure the PSCN doesn't make both sides extend. If you set the ctype of piston by drawing on it it won't be able to push elements of that type.
    Edited once by jacob1. Last: 23rd Oct 2014
  • snickepie95
    23rd Oct 2014 Member 0 Permalink

    And how does it retract 20px then?

  • jacob1
    23rd Oct 2014 Developer 0 Permalink
    @snickepie95 (View Post)
    You still make the piston 20 pixels long and put the NSCN at that end
  • boxmein
    24th Oct 2014 Former Staff 0 Permalink
  • Schneumer
    24th Oct 2014 Member 0 Permalink

    @boxmein (View Post)

     retraction doesn't work o_O

  • jacob1
    24th Oct 2014 Developer 0 Permalink
    It looks like boxmein put the NSCN one pixel too close, if you move it to the right a pixel it works as expected (extends 20 at a time, retracts 1 at a time)

    I once made a save where a piston "crane" could only extend/retract one at a time, but when the crane was pulled back all the way to the start there was some extra piston above it that lined up and made it able to extend/retract faster. Although i've seen people use pistons in even more complicated ways ...

    NsaWNr
    Edited once by jacob1. Last: 12th Aug 2015