Extensions:2.6/Py/Scripts/Game Engine/FPS Mouselook

提供: wiki
< Extensions:2.6‎ | Py‎ | Scripts‎ | Game Engine
2018年6月29日 (金) 05:54時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索
MouseMove Script
A Mouselook & Movement Script
UI location
Usage This script is designed to be quick to set up and easy to customize, and offers a Mouselook system and two optional Player movement features.
Version 2.7 2013/03/19 Author(s) Riyuzakisan
Blender 2.66.1 License CC


Executable information
File name mousemove.py
Current version download http://riyuzakisan.weebly.com/mousemove-script.html#download
External Python Modules or dependencies -


Links Manual on Riyuzakisan's blog


Installation

  • Open or Paste the script in Blender's Text Editor and give it a good name
    • Example: "mousemove.py"
    • It is recommended to add ".py" to the end
    • You may want to use the Format > Convert Whitespaces > To Spaces feature in the Text Editor. This will prevent any indentation related errors.
  • Select the Object you want to add the script to.
  • In the Logic Editor, add an Always sensor and enable True level triggering [`]
    • True level triggering on an Always sensor will update the script on every Logic tick.
  • Add a Python controller, and connect it with the Always sensor.
  • Select the mousemove script in the Python controller's drop down menu.

Note: As of update 2.61, you can use any sensor to trigger the Python controller.


Full instructions can be found in the Instruction Manual on Riyuzakisan's blog.