Ball Pipes Physics Please Help me Out

creativeappscreativeapps Member Posts: 1,770
edited November -1 in Working with GS (Mac)
I want to pass ball from this pipes. I am using one image pipe and apply collision in it. Pipe is movable so I am not able to add hidden collide actor around the pipe. Please let me know what to do. Thanks

Comments

  • creativeappscreativeapps Member Posts: 1,770
    any one?
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    Dont put the collide rule on your pipe.
    Instead make some transparent actor walls your set along the sides
  • creativeappscreativeapps Member Posts: 1,770
    is it possible to do with out transparent actor. Beacuse my pipe is movable so how can I move that pipe image and transparent actor at same time???
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Constrain the transparent actors to the pipe actors position. add some offsets to the position so you can get it set exactly like you want.
  • creativeappscreativeapps Member Posts: 1,770
    tenrdrmer said:
    Constrain the transparent actors to the pipe actors position. add some offsets to the position so you can get it set exactly like you want.

    I send you pm message please check
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    First of all I rarely check that so its really a bad way to communicate. why not just make a demo request right here in your thread.

    Secondly no sorry I don't have time to create a free demo for this. But Others as well as myself have explained what you need to do.

    If you are wanting something completely different search through the marketplace. JohnPapiotimis had a pipes demo for sale at one time. I used a different method for the pipes but honestly if your not understanding how to constrain invisible actors your probably gonna have a hard time understanding how his setup worked.

    Good luck.
  • creativeappscreativeapps Member Posts: 1,770
    Thanks for your reply. Hope someone create it for me
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You have to learn to walk before you run a marathon.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Constrain the pipe's x and y to game level attributes (game.pipeX and game.pipeY)

    Then have a rule in the ball.

    When self.positionY is greater than game.pipeY+(pipe's height - 2)
    And selfpoisitonX is < game.pipeX-(number of pixels between the ride pipe image and the right side of the actor)
    and self.positionX is > game.pipeX+(number of pixels between the ride pipe image and the left side of the actor)
    and collides with pipe

    ----change self.positionX to game.pipeX+( 1/2 pipe's width)
    ----change self.positionY to game.pipeY
    ----change self.linearmotionX to linearmotionY
    ----change self.linearmotionY to 0

    I think that with a little tweaking this will work way better than constraining a bunch of invisible actors.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    search "pipe DEMO using math not physics" in GS creator.
  • creativeappscreativeapps Member Posts: 1,770
    thanks a lot scitunes you are master. Thanks a lot for your help.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    creativeapps said:
    thanks a lot scitunes you are master. Thanks a lot for your help.

    no problem
  • creativeappscreativeapps Member Posts: 1,770
    I sent you pm message please check. Its related to something else.
Sign In or Register to comment.