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

Need some help withMSPhysics script

Scheduled Pinned Locked Moved Developers' Forum
1 Posts 1 Posters 5.5k Views
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.
  • J Offline
    Johnsketch
    last edited by 7 Dec 2019, 22:53

    Hi, i'm just started with using script in ms physics. I see the potential, but its hard to find samples or good tutorials about it. For example, i use this script for different servo's

    onStart{
    set_var("schuif",0)
    }

    onClick{
    if get_var("schuif")==0
    set_var("schuif",9)
    else
    set_var("schuif",0)
    end
    }

    This script make's a piston go 0ne direction on click, and go back on the next click.
    Is it possible te slider goes back to 0 without the second click? Meaning it goes to 9 en then returns to 0 ?

    I use a similar script to rotate an object 45 degrees on each clikck, but this script allows me only 3 clicks. Is there a way to extend the number of clicks?

    Hope someone can help me out with this

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

    Advertisement