New answers tagged

0

Add or subtract a random number from x, and use timers to spawn particles once per second if(timer >= 1) { int y=//random number int xnew = x + y; //clear timer for(int i; i <= xnew; i++) { //span particle } } This will cause the particles to spawn very close together, and then stop for about a second. To space them out more (but not ...


0

I solved my problem using steering behaviours thanks to the suggestion by @Alexandre Vaillancourt. The "arrive" behaviour was the solution for me as suggested in his comment.


0

This can be done in a simple 3 step looped process. Step1: Clear screen of all moving objects or sprites Step2: Apply formula -- Height-(9.8)*T^2 Step3: Apply objects or sprites in new position I even made you quick graph to show you what I mean. https://www.desmos.com/calculator/f0bglhnjjg



Top 50 recent answers are included