Thursday, September 23, 2010
Blender Game Engine: Basic Logic
Confused with the Blender game engine? Well let's get you started the fun way!
Adding forward motion:
1.) Press F4
2.) Select camera, Actor, and add & connect all columns
3.) Under the Sensors Tab click where you see "Always" and select Keyboard.
4.) Next to Key select the key you want to use, in this case, type the up arrow after clicking the rectangle next to Key
5.) Under the Actuators Tab change the z value in "loc" to "-0.1"
6.) Test it out with 0,P
7.) ESC to get back to the working screen
Adding backwards motion
1.) Press F4
2.) Select camera, Actor, and add & connect all columns
3.) Under the Sensors Tab click where you see "Always" and select Keyboard.
4.) Next to Key select the key you want to use, in this case, type the down arrow after clicking the rectangle next to Key
5.) Under the Actuators Tab change the z value in "loc" to "0.1"
6.) Test it out with 0,P
7.) ESC to get back to the working screen
Avoiding other objects:
1.) F4 (logic panel)
2.) Select Dynamic & make sure the default radius is still 1
6.) Test it out with 0,P
Note 1: The numbers listed in the Actuators tab are in x, y, z order.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment