I want the rifle to spit out a cartrige eatch time its fired, i wonder if anyone know a good way to code this and what moment to use on the cartriges so it looks nice and a bit random?
Printable View
I want the rifle to spit out a cartrige eatch time its fired, i wonder if anyone know a good way to code this and what moment to use on the cartriges so it looks nice and a bit random?
What about MMFs Pinball Movement? It works fine to make things pop up and fall off screen.
Yes i tried that after i wrote :) It looks nice! The only problem is how to make the cartrige bounce nicly on the floor and then lay still. I have tried to fiddle a bit with the gravity and speed after impact but it often jerks around uncomfortably when it hits the ground.
Pinball Movement can be tricky if you need bouncing. Maybe switch to another movement once they hit the ground. What about selecting one of some pre-defined Path Movements at random?