Class KX_SceneActuator -- Blender Game Engine 2.49b



 
 




mode

mode

gets/sets mode of the Scene actuator

Type:  integer
  1 = Restart Scene
  2 = Set Scene
  3 = Set Camera
  4 = Add Overlay Scene
  5 = Add Background Scene
  6 = Remove Scene
  7 = Suspend Scene
  8 = Resume Scene

Sample Code


####################  Get mode

# get controller
controller = GameLogic.getCurrentController()

# get actuator attached to the controller named Scene
act = controller.actuators["Scene"]

# get scene mode
actMode = act.mode

####################  Set scene

# get controller
controller = GameLogic.getCurrentController()

# get actuator attached to the controller named Scene
act = controller.actuators["Scene"]

# set to restart
act.mode = 1

 
Game developers can use the 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 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.