x2495iiii
09-22-2009, 04:42 AM
I'm going to change the format a bit and just explain what I think needs explained.
What is it: It's basically slow motion which allows a player to see a bullet in flight and dodge it.
How I did it: First I made a simple Sheriff with a revolver which fires the same bullet continously. Then, I made two methods, one which is called when the Spacebar is pressed, and another which is called when it is released. The first method, SpaceBegin, increases the duration of the bullet's flight, decreases the world's speedModifier, and shows and expands the bullet (for better visibility), simultaneously and instantly. The second method undoes all of these changes simultaneously and instantly as well. It's kind of fun to try going in and out of bullet time multiple times during a single bullet's flight towards the cowboy, try it.
I also added an effect which gives the bullet little shockwaves as it flies through the air. It's hard to see, so I tinted the ground black to make it easier.
Is it cool: Oh yeah, it's cool.
What is it: It's basically slow motion which allows a player to see a bullet in flight and dodge it.
How I did it: First I made a simple Sheriff with a revolver which fires the same bullet continously. Then, I made two methods, one which is called when the Spacebar is pressed, and another which is called when it is released. The first method, SpaceBegin, increases the duration of the bullet's flight, decreases the world's speedModifier, and shows and expands the bullet (for better visibility), simultaneously and instantly. The second method undoes all of these changes simultaneously and instantly as well. It's kind of fun to try going in and out of bullet time multiple times during a single bullet's flight towards the cowboy, try it.
I also added an effect which gives the bullet little shockwaves as it flies through the air. It's hard to see, so I tinted the ground black to make it easier.
Is it cool: Oh yeah, it's cool.