Posted: Fri Jan 31, 2003 8:10 am
Joined: 30 Jan 2003
Posts: 6
I know this is a dumb one, but bear with me. Does the python GameLogic module come with the downloadable version of publisher, or do you have to get the game kit? if it comes with it, would someone tell me how to import it, because python can't find mine.
Thanks,
Mark Schiltz
Posted: Fri Jan 31, 2003 3:56 pm
Joined: 10 Jan 2003
Posts: 2242
Blender Publisher is blender 2.25 publisher ( which can make standalone runable files ).
The Gamekit is blender 2.24 creator + 10 demo's + great book wich gives anwers to all (newbie) questions.
the GameLogic python is in blender. So blender uses python, not python uses blender. The python version in blender is not the full version of python, I'm not even sure which version of python it is.
I hope this answers some of you question.
-Joeri
Posted: Sun Feb 02, 2003 9:29 am
Joined: 30 Jan 2003
Posts: 6
Isn't there a GameLogic Module, though, that can be accessed in the python scripting window that allows actuators and what not to be used in python scripts rather than with the buttons? Or am I completely making this up? Help?
Mark
Posted: Sun Feb 02, 2003 3:52 pm
Joined: 10 Jan 2003
Posts: 2242
No you are correct.
Most Sensors and Actuators can be accessed truw python as well.
More on that in:
http://www.blender.org/modules/documentation/gamelogic.pdf
-Joeri
Posted: Sun Feb 02, 2003 7:42 pm
Joined: 30 Jan 2003
Posts: 6
I know the procedure for most of the GameLogic module, I just need to know where the module file is located because if I type :
import Blender
import GameLogic
I get an error that says "module GameLogic not found"
Even when I import other people's games, the usually won't run on my machine because of this error. So, anyone know where the file is or what I'm doing wrong?
Mark
Posted: Sun Feb 02, 2003 7:58 pm
Joined: 14 Oct 2002
Posts: 179
| prdglsn79 wrote: |
import Blender
import GameLogic
I get an error that says "module GameLogic not found"
anyone know where the file is or what I'm doing wrong?
|
How are you trying to access the Gamelogic Module?
You cannot run a game script by pressing alt-p in the text window as you would for non-game related scripts. Gamelogic scripts are activated by whatever sensor you associate them to and are activated only during play mode ie. pressing P in the 3d viewport followed by the activation of the appropriate sensor!