Ragevortex Capping a max value is pretty easy.
On the line where you have:
Set Bullet speed
touch.SpeedAt(0)+200[/code:ydaqkthc] Change it to: [b]Set Bullet speed[/b] [code:ydaqkthc]min(touch.SpeedAt(0)+200,300)[/code:ydaqkthc] If you want to get really fancy, you could create a global variable and name it maxBallSpeed. Then just set that value at the top and it will be easy to maintain. [b]Set Bullet speed[/b] [code:ydaqkthc]min(touch.SpeedAt(0)+200,maxBallSpeed)[/code:ydaqkthc]
Develop games in your browser. Powerful, performant & highly capable.
EgoAnt
Thank you for your answers.
I had made an alternate solution by the time but yours are preety clean looking
Ball bullet.speed <= 800 | Ball set bullet.speed =800
works just fine in my case.