Interpolate question
beefy_clyro
Member Posts: 5,394
Hi. Im currently trying to use interpolate at the moment and am not getting it working how i would like. If you can imagine, i have a cannon in the centre of my screen, it fires a ball directly up and then i would like it to go to 1 of 6 places on the bottom of my screen. The only way i have currently got it going is to use interpolate to move to the 1st location with a 1 second duration, after a second the ball then goes to 1 of its 6 locations based on an attribute that changes 'randomly'. i.e. if game.ballposition = 1 then it goes to 1 location etc etc
Now the problem i have is if the 1st ball is still live, it moves to the next location when the game.ballposition attribute is changed. The second problem i have is its not smooth enough yet, its a bit to 'straight lined' if that makes sense? If anyone could help with making this better it would be much appreciated.
Thanks
Now the problem i have is if the 1st ball is still live, it moves to the next location when the game.ballposition attribute is changed. The second problem i have is its not smooth enough yet, its a bit to 'straight lined' if that makes sense? If anyone could help with making this better it would be much appreciated.
Thanks
Comments
Experiment and see what works best for you on that.
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io