pageok

  

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


   




  
pageok