Blender 2.5 Python Scripting in the Game Engine Entering Text at Run Time Part 1

preview_player
Показать описание
This video tutorial shows how to build up a Python script to process keyboard presses at run time, particularly entering text. This can be used to create user interfaces for games or other applications created with the Blender Game Engine.

Key points -
Logic bricks alone are not suitable for text entry, Python script is needed.
The logic brick keyboard sensor can be set to sense all keys.
When a key is pressed an event code for that key is generated.
The event codes for the letters of the alphabet all have the same format A - AKEY, B - BKEY etc.
A simple bit of code can strip the letter from the event code.

The file created can be downloaded from my website -

Рекомендации по теме
Комментарии
Автор

Great tutorial. It really got me on the right track.

spencerdupre
Автор

You can get the file from my website (address is in the video notes). The file is linked to on the home page, you have to scroll down quite a long way (I will get round to organising the site soon, honest;)

ianscottBlenderTutorials