1
$\begingroup$

Is there any way to programmatically specify the number of frames for which you want bge to run? Let's say I want bge to run for 5 frames after which I want to modify some game parameters via some script I have. I'm running everything via command line so accessing any sort of control features via the gui isn't an options. Is this possible?

Thanks!

$\endgroup$
1
$\begingroup$

You can measure the frames with a delay sensor:

enter image description here

$\endgroup$
  • $\begingroup$ How do I do this with python, though? $\endgroup$ – Archana Ram Aug 27 '15 at 2:50
  • $\begingroup$ Setting up this logic bricks in Blender or running the BGE? $\endgroup$ – Monster Aug 27 '15 at 4:38
  • $\begingroup$ setting up the logic bricks above $\endgroup$ – Archana Ram Aug 28 '15 at 2:53
  • $\begingroup$ It should be possible there is something like bpy.ops.logic.sensor_add(). But I can't help with Blender scripting. $\endgroup$ – Monster Aug 28 '15 at 8:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.