[Bf-python] GameEngine "destructor" ??

Natanael Olaiz nolaiz at gmail.com
Wed Dec 24 08:43:49 CET 2008


Hi Jim,

Thanks for your answer.

How can I "quit game"? I can't found it... That's because the script that I
tried makes Blender hangs....

And yes, I'm using a SVN build of Blender, on Ubuntu Hardy.


Thanks again, and Merry Christmas :)
Natanael.


On Wed, Dec 24, 2008 at 3:04 AM, James Smyth <jimsmyth at gmail.com> wrote:

> Using the keyboard sensor and mapping 'escape' to a python script and to
> 'quit game' should work. This works fine for me when I make a
> destructor. Are you using an svn build of blender or something?
>
> - Jim
>
> Natanael Olaiz wrote:
> > Hi all,
> >
> > I have a question... I'm trying to use the GameEngine with a
> > headtracking which uses the serial port, so I use an "allways sensor"
> > with level detector as an init event, to trigger a python script which
> > opens the port and set a bool "initialized" property.
> > So, I can use it while the gameengine is running.... but the problem
> > is: I want to reset the device and close the port when the GameEngine
> > is over.... so: There is some event/method called when GameEngine ends?
> > And a related question: I tried to intercept the "escape" key pressed
> > event, but then I couldn't close the gameengine and neither blender
> > -but killing the process-.... :-/ There is some other way to do that?
> >
> >
> > Thanks in advance.
> >
> > Best regards,
> > Natanael.
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Bf-python mailing list
> > Bf-python at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-python
> >
>
> _______________________________________________
> 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/20081224/b3b515ba/attachment.html>


More information about the Bf-python mailing list