Class SCA_ISensor -- Blender Game Engine 2.49b
|
level
level
Note:
The Level button is a part
of the State System.
gets/sets whether or not the level (Lvl) button is active.
Level button activated:
Deactivated
sensor is reactivated:
Checks to see if a
mouse button/keyboard/etc is being pressed.
If it is, it sends a pulse to the controller.
Level button not activated:
Deactivated
sensor is reactivated:
Doesn't check to see
if a mouse button/keyboard/etc is being pressed.
Doesn't send pulse to the controller.
Type: Bool
1 = True
Level
button active.
0 = False
Level button
inactive.
Sample Code
################## Get level
# get the controller
controller = GameLogic.getCurrentController()
# get sensor named sensor
sen = controller.sensors["sensor"]
# send pulse when activated by State System?
sendPulse = sen.level
################## Set level
# get the controller
controller = GameLogic.getCurrentController()
# get sensor named sensor
sen = controller.sensors["sensor"]
# send pulse when activated by State System
sen.level = True
|
Blender 3D game
developers
can use the Blender 3D game engine to create casual video games,
first and third person shooters, role playing games, racing simulations
and more. The game engine can be used to make both 2D games and 3D
games. Beginning Blender 3D game developers will only need basic
knowledge
of
game design and programming to create rich and complex game models with
photo realistic textures to add detail to the graphics of the video
game. Today's games need more than good looking low polygon game
models. Use normal maps and photo realistic textures to create
high
quality game models.