Bounce on moving platform
jon2s
Member Posts: 40
I have a setup where there are stationary cloud platforms and they work all the time (jump through, land on top bounce up). Did this by checking if the moving actor is going up or down. If down, colide.
I also have a moving cloud platform, it works sometimes. How I have it moving is by checking if it's self positionx < 30 then change velocity -> speed 50. There is another rule checking if self positionx > 290, then change velocity <- speed 50. It moves back and forth just perfectly, but about 40% of the time the actor that moves through it misses it completely.
Anyone have any ideas?
Thanks,
Jon
I also have a moving cloud platform, it works sometimes. How I have it moving is by checking if it's self positionx < 30 then change velocity -> speed 50. There is another rule checking if self positionx > 290, then change velocity <- speed 50. It moves back and forth just perfectly, but about 40% of the time the actor that moves through it misses it completely.
Anyone have any ideas?
Thanks,
Jon
Comments
Another tip that may or may not be related- I am assuming you have a rule that says when self.linear.Y is < 0 and collides with MovingCloud then accelerate 90 to scene...
Try this. Same rules but instead of the accel behavior have a boolean attribute (jump) and use a change attribute behavior that changes it to true. Then have a second rule that says when jump is true accelerate 90 to scene (wrapped in a timer of course (set to run to completion). Make sure both the jumper and the platform's restitution is 0. Also in the when jump is true rule have a second timer set to "after" 0.1 change jump to 0.