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
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
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 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.
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.
Comments
Instead make some transparent actor walls your set along the sides
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.
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.