Questions tagged [logic-bricks]
Logic bricks are the sensors, controllers, and actuators in the Logic Editor. They are used in the BGE.
370
questions
2
votes
1
answer
2k
views
Keeping the animation running in a Python script triggered by Always sensor in bge?
I am trying to create my own sensor block in Blender's Game Logic to detect a text file being created in my C drive by another program.
Is it possible to perhaps hack an existing sensor or to create ...
1
vote
1
answer
1k
views
How can I set the linearVelocity so that the object travels a specific distance with python?
What velocity should I set an object to in order to have it travel 30 Blender Units in 0.25 seconds.The object will be traveling on its Y local axis. This is being done in python rather than an ...
1
vote
2
answers
400
views
How do you restrict the left click rate in the game engine?
In my game I have an action performed whenever the left mouse button is pressed. Is there a way to restrict how fast the player can click? Right now the event will trigger as many times as they can ...
1
vote
1
answer
1k
views
Problem assigning action in BGE
I created an action, "run", in the animation editor.
To create the animation, I moved the bones in pose mode and used automatic keyframes, so, for each movement of the bones, it creates a new frame.
...
2
votes
1
answer
570
views
How can a f-curve be used in an animation in BGE?
I created some f-curves for different frequencies from an MP3 files, using the "bake sound from f-curve" function from the Key menu in the f-curves editor. The curves are assigned to a keyframe and ...
7
votes
2
answers
2k
views
Blender game character not responding to game logic
I created a basic male figure and rigged it using the rigify add on. I also created a simple walk animation action.
I attempted to turn the rigged model into a game character inside the blender game ...
5
votes
1
answer
549
views
Button over another in the game engine
I have a little red plane above a big green plane:
I have set the red plane for one action, and the green plane for another when i click them.
But when i click one the red (in the game) that click ...
3
votes
1
answer
1k
views
Working sample of steering actuator with path following behavior
I have this blend file to test the steering actuator, the object named "Cube" is the one that has the steering actuator.
test2.blend
I can't find a working sample on the the web, and can't setup a ...
3
votes
2
answers
277
views
How can a Script be periodically invoked from the BGE?
In a script I try to get the coordinates of a head tracker and to change the current scenes camera. The script is wired as shown in this image:
Unfortunatly the script is only called once. How can I ...
5
votes
2
answers
4k
views
Manipulate BGE logic bricks through python
Is it (if at all) possible in Blender 2.6+?
If not, will future versions of Blender support it?
I see some old posts (this and this) saying that it is not possible. However, I found a recent post ...