Discussion:
[Bf-python] Blender/Python Help
Clark, Collin
2014-03-29 02:42:28 UTC
Permalink
Hello,
I am a amateur game developer using Blender.
I have an idea about my game. My idea is to add a editable Key binding menu
in my game.
The problem I am having is that I don't know how to integrate a python
script to my game. I know how to make a script in Text Editor and apply it
in my Logic editor, but I don't know how to write the code for it. I was
thinking something like this:

Forward = move x + 1
input "_" = Forward

But I highly doubt that blender knows what I mean.
If you have encountered this problem before or know how to do this
correctly, I would greatly appreciate it ;)

Also, if this is the wrong mailing address, I apologize.

Sincerely,
Collin Clark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-python/attachments/20140328/612a6551/attachment.htm
brita
2014-04-01 07:34:00 UTC
Permalink
Hey there, connecting the script to the logic is the first step.
Then you should take a look at the GE python API:
http://www.blender.org/documentation/blender_python_api_2_70_release/#game-engine-modules
and to the main page:
http://www.blender.org/documentation/blender_python_api_2_70_release/
that has links for quickstarts overviews etc. Try a few things to get used
to what you can do with python.
Then you should think about your problem :) How do you change the input key
and where do you intend to keep it? And then the forward part.

--
In?s Almeida
Post by Clark, Collin
Hello,
I am a amateur game developer using Blender.
I have an idea about my game. My idea is to add a editable Key binding
menu in my game.
The problem I am having is that I don't know how to integrate a python
script to my game. I know how to make a script in Text Editor and apply it
in my Logic editor, but I don't know how to write the code for it. I was
Forward = move x + 1
input "_" = Forward
But I highly doubt that blender knows what I mean.
If you have encountered this problem before or know how to do this
correctly, I would greatly appreciate it ;)
Also, if this is the wrong mailing address, I apologize.
Sincerely,
Collin Clark
_______________________________________________
Bf-python mailing list
Bf-python at blender.org
http://lists.blender.org/mailman/listinfo/bf-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-python/attachments/20140401/f6228c42/attachment.htm
Loading...