Simple Movement -- Blender 3D Game Engine








  
15
Optional:  Add a Property named running to the player

Note:
The Property must be named running.  Can't be named Fred or Running or anything else.  The python code looks for a Property named running.

Note:
The Property named running allows you to change the speed your player runs.  If there isn't a Property named running, Movement.py will use the default running speed of 1.5 times the walking speed.

Add Property to player named walking
Buttons Window menu >> Logic (F4)
Add Property button
Type:  Float
Name:  running
Amount:  15.0


   
16
Optional:  Add a Property named jumping to the player

Note:
The Property must be named jumping.  Can't be named Fred or Jumping or anything else.  The python code looks for a Property named jumping.

Note:
The Property named jumping allows you to change the how high your player jumps.  If there isn't a Property named jumping, Movement.py will use the default jumping amount.

Add Property to player named walking
Buttons Window menu >> Logic (F4)
Add Property button
Type:  Float
Name:  jumping
Amount:  15.0


   
17
Start Game Engine

User Preference menu >> Game >> Start Game
or
P key


   




  
The Blender 3D and game engine tutorials were created as a series of step by step instructions and help you create computer games. Use the tutorials to make casual video games, First Person Shooter games, role playing games, racing simulation games and more. Use the tutorials as a self paced learning tool to model and program your own three-dimensional world and then play on your computer.