Make a paddle follow a ball back and fourth. Question for tshirtbooth
swiftskater1
Member Posts: 97
I have asked this before. But if someone can please give me clearer instructions.. Thank you.
Comments
For future reference and probably speaking for the forum mods (if there are any), it probably would be best not to start up new threads regarding the same subject, as it would flood the forums.
It would make the Computer Paddle move in normal speed and in the direction based on whether or not the Y values were higher or lower. I knew Constraining the Attribute would make the Computer Paddle move unrealistically, and would never miss the ball, so I never gave him that setup.
In the computer paddle. Use accelerate towards and for the X put in game.ballX. For the speed set it to random(lowest speed, highest speed) then set the Max speed in the attributes pane so that it cannot go insanely fast. you can also use the drag behavior to control how it fast it comes to a stop or starts up. Setting the max speed should do the trick.
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io