官术网_书友最值得收藏!

Exploring the interface of the Logic Editor

Alas! There are so many panels and everything seems so confusing. Do not worry, my first impression was the same. However, by the end of this chapter, you will be familiar with most of the on screen elements. When you create a game with Blender, you do not work with only one editor type. But without Logic Editor, it is not possible to make a game.

Knowing the interface of the Game Logic view offers insight into how the Logic Editor works and prepares us to make complex connections in our game truly interactive.

The Game Logic layout is divided into areas by default, each of which has a particular function or purpose, depending on what the user is doing at that time. There are Header areas in each display editor type. Using these headers (pointed out by the arrows in the next screenshot) we can swap between different editor views. We will focus on the bottom display called Logic Editor (bottom left header).

Exploring the interface of the Logic Editor

Tip

If you want to zoom in/out of the Logic Editor work area, you must press MMB (middle mouse button) and move it. If you want to pan work areas click Shift button + MMB. Choose Ctrl button if you have Mac OS

The Blender Game Engine uses logic bricks (a combination of sensors, controllers, and actuators) to control the movement and display of objects in the engine.

  • Sensors sense events, for example, a key press or mouse movement. Sensors are linked to controllers which compare them.
  • Controllers check (true or false) and combine these pulses to trigger the proper response and activate the last group: actuators. They can also be thought of as conditional rules.
  • Actuators initiate their functions when they get a positive pulse from one (or more) of their controllers.

We will explain shortly these three parts of logic bricks and set up a very basic system within the game panel by showing how to use a sensor, controller, and actuator.

Tip

The list menu of an object's logic is only visible when the object(s) are active (shown in white in the outliner panel). Be sure the cube is selected (if not, click on it in the 3D View with the right mouse button).

主站蜘蛛池模板: 舒城县| 饶平县| 宁南县| 泗洪县| 武陟县| 广河县| 禄劝| 长治县| 尚义县| 宁武县| 乾安县| 霍林郭勒市| 隆回县| 广东省| 中江县| 永康市| 前郭尔| 泰顺县| 开封县| 沭阳县| 盐池县| 政和县| 聂拉木县| 泗洪县| 石门县| 桦甸市| 牙克石市| 东乌珠穆沁旗| 香港 | 喀喇沁旗| 周口市| 南投市| 靖宇县| 济阳县| 普宁市| 庆城县| 彰化县| 麦盖提县| 信阳市| 嘉峪关市| 舞阳县|