How do I Make this piston work?

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
_______ Huge collection of metal fixtures ________
  • Im making a 2D Minecraft type game where you watch how the world interacts with itself (making my own AI type thing with the animals.) You as the observer can interact in said world, kind of like a "god" in a sense. Im trying to make a piston that can pull the blocks back in when deactivated. the grid is 50x50 and i need it to work no matter the orientation. pin behavior isn't working so far, if anyone has any advice, pls let me know. sorry for no pics, they wouldn't load.

  • Pics would definitely help to understand your question. You can upload them to any service like imgur and post links here.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't know if these will work, i do apologize if they don't, unfortunately, my access here is limited because this computer is school owned for the gaming concepts/E-Sports class, link suggested for the pictures was blocked. Again, I apologize if it doesn't work and i will try to find a way to put pictures if it doesn't.

    file:///C:/Users/esports/Pictures/Screenshots/Screenshot%202025-11-05%20134631.png

    file:///C:/Users/esports/Pictures/Screenshots/Screenshot%202025-11-06%20132021.png

    file:///C:/Users/esports/Pictures/Screenshots/Screenshot%202025-11-06%20132013.png

    file:///C:/Users/esports/Pictures/Screenshots/Screenshot%202025-11-05%20134808.png

  • file pics wont work, sorry you have to deal with school computers. try not using behaviours, but code.

    if piston is two parts here's some code that'll probs work.

    On (button press) -> (piston wood) move (X) pixels in (direction facing)

    -(piston wood) on collision with (other block), (Piston wood) Pin to (other block)

    On (button release), (piston wood) move (X) pixels in (direction facing) -180 degrees.

    Hope this helps and you can figure out a release mechanism!

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)