Few simple questions on game engine!

Gah having a brain fart again, anyone know how to just make some sort of projectile happen in blender game engine? basically just trying to remember how to make like a machine gun of sorts happen, also simplest thing ever! how do you change the sky in the game engine? changing the sky in the world options doesn’t work and i cannot remember! Also one more thing! how do I make it so that when your in blender you can just hold down a key instead of pressing it over and over? for machine gun etc.

  1. Well, you can create objects by using the Add Object actuator, and using a linear velocity of a certain amount. However, the Bullet physics engine doesn’t do well with small objects like… Well, bullets, so it’s generally a good idea to use rayCast functions in Python or a Ray sensor.

  2. You can change the sky color in the World settings - make sure you have the Blender Game renderer set up, and change the Horizon Color option.

  3. You should be able to use a Keyboard sensor with a True pulse setting (the button that looks like [’’’]).

Woah! Remember to make sure the bullets are ghosts, so they they won’t ricochet. I’d even add a “die on collision”, so they don’t score multiple collisions. Even better, make the bullets tiny (and invisible). Use another object for the tracers. You could even code some jitters, or play an animation to set up increasingly worse accuracy. Finally, wrap this up with a simple integer for ammunition. Logic Bricks could do all of this.