Ooops, I see now that there is an actuator to stop the game.... :)<br><br><br><div class="gmail_quote">On Wed, Dec 24, 2008 at 8:43 AM, Natanael Olaiz <span dir="ltr"><<a href="mailto:nolaiz@gmail.com">nolaiz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jim, <br><br>Thanks for your answer.<br><br>How can I "quit game"? I can't found it... That's because the script that I tried makes Blender hangs....<br>
<br>And yes, I'm using a SVN build of Blender, on Ubuntu Hardy.<br>
<br><br>Thanks again, and Merry Christmas :)<br><font color="#888888">Natanael.</font><div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Wed, Dec 24, 2008 at 3:04 AM, James Smyth <span dir="ltr"><<a href="mailto:jimsmyth@gmail.com" target="_blank">jimsmyth@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Using the keyboard sensor and mapping 'escape' to a python script and to<br>
'quit game' should work. This works fine for me when I make a<br>
destructor. Are you using an svn build of blender or something?<br>
<br>
- Jim<br>
<div><div></div><div><br>
Natanael Olaiz wrote:<br>
> Hi all,<br>
><br>
> I have a question... I'm trying to use the GameEngine with a<br>
> headtracking which uses the serial port, so I use an "allways sensor"<br>
> with level detector as an init event, to trigger a python script which<br>
> opens the port and set a bool "initialized" property.<br>
> So, I can use it while the gameengine is running.... but the problem<br>
> is: I want to reset the device and close the port when the GameEngine<br>
> is over.... so: There is some event/method called when GameEngine ends?<br>
> And a related question: I tried to intercept the "escape" key pressed<br>
> event, but then I couldn't close the gameengine and neither blender<br>
> -but killing the process-.... :-/ There is some other way to do that?<br>
><br>
><br>
> Thanks in advance.<br>
><br>
> Best regards,<br>
> Natanael.<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Bf-python mailing list<br>
> <a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
> <a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
><br>
<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>