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 Answer 1

1
$\begingroup$

You can measure the frames with a delay sensor:

enter image description here

$\endgroup$
4
  • $\begingroup$ How do I do this with python, though? $\endgroup$
    – 29374819
    Commented Aug 27, 2015 at 2:50
  • $\begingroup$ Setting up this logic bricks in Blender or running the BGE? $\endgroup$
    – Monster
    Commented Aug 27, 2015 at 4:38
  • $\begingroup$ setting up the logic bricks above $\endgroup$
    – 29374819
    Commented Aug 28, 2015 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
    Commented Aug 28, 2015 at 8:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .