What am I trying to do:
Trying to make a pong like game. The Player presses SPACE until bar increases, if at MAX and then released, it shoots a ball towards the target.
This works fine; however, I know what the problem is, I just can’t think how to fix it.
I don’t want the ball to follow the target around… it’s supposed to be a single shot and will bounce around (that’s the idea).
Hi @robertofreemano Why aren’t you using physics 2.0? - I don’t use it that often but it’s perfect for this sort of thing.
I was expecting you to add 1 to force while the key is pressed and then set a variable called something like ‘forceangle’ to AngleBetween(player.X(),player.Y(),target.X(),target.Y())
then apply the force at ‘forceangle’
I’ve not used bounce behaviour before - so i can’t make suggestions here.
you don’t have to use physics2 - you can use variables like ‘momentum’ ‘acceleration’ etc and do it like that, but have a loook at the physics examples - open them up and have a look at the settings they use.