Questions tagged [logic-bricks]
Logic bricks are the sensors, controllers, and actuators in the Logic Editor. They are used in the BGE.
370
questions
19
votes
1
answer
2k
views
How can I make my gear simulation in the BGE work?
I have the movement and rotation restrained properly, but the simulation is not behaving like it should. both objects are rigid body objects.
How can I make my gear simulation work?
15
votes
1
answer
2k
views
How could I place objects (buildings) on a flat surface in the BGE?
I'm working on an RTS in BGE, and I am not sure how I could make it so you can place buildings on flat surfaces (or unless there is an easier way). I would love to know how to place buildings when you ...
13
votes
2
answers
12k
views
Controlling BGE properties with python script
I would like to know how to change the values of properties added using the "AddGameProperty" option in the game logic UI using python code? I want to write code that changes the 'Property' value in ...
12
votes
2
answers
2k
views
Making weather effects in the BGE
This type of snowfall looks nice:
If that example was made in Blender Internal or Cycles, I'd say particles were used - but particles clearly don't work in the BGE. How can a weather effect such as ...
9
votes
1
answer
1k
views
Is it possible to snap objects to faces in the Blender Game Engine?
I recently have been experimenting with X-27's excellent answer on how to place objects dynamically in the BGE. I have been trying to figure out how to do the same thing, only make it possible to snap ...
8
votes
1
answer
803
views
Making an Interface in blender game engine
I am learning how to make interfaces in the game engine, and I have set up 2 buttons: an exit button and a play button. When one of the buttons receives a left click, it either closes Blender or goes ...
7
votes
3
answers
9k
views
How to change material's color in blender game engine?
I am making a new racing game in BGE. I want my game to have a feature to change car color in-game (car consists of multiple materials, but currently I want to change body material). How do I make ...
7
votes
1
answer
444
views
Why does blender crash when my missile disapears in the BGE?
In the following scene, I have a camera parented to a missile. When the missile collides with any collision mesh, it disappears. The logic setup is pictured below.
However, when the missile ...
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 ...
6
votes
4
answers
3k
views
How do I make a weapon shoot at the center of the screen?
I've been researching this for weeks and only found bad results. I think its time for a good answer. I have a rocket launcher, so I can't "fake" the bullet. There is no way to fake a rocket. I need it ...
6
votes
5
answers
2k
views
How to achieve more physically accurate motion in the game engine?
I have a character with a very simple motion control: when I press W the character moves forward, with S they it goes backwards and so on. The problem is that unlike what is possible in the real world,...
6
votes
1
answer
5k
views
How to play action actuator logic brick via python
I want to know how to play(send true pulse) to an action actuator via script (logic brick with all the settings) since playAction doesn't have animation property which I need.
6
votes
1
answer
499
views
Clamp velocity along local axis
In the attached Blend File, I have a representation of a airplane/jet fighter (cube scaled at one end to indicate direction of flight). I am using torque to steer, and adding Linear Velocity along a ...
6
votes
3
answers
1k
views
Record Animation In BGE
I am having trouble getting the Record Animation setting to work in the BGE. Is it possible to record animated characters that are controlled using BGE's logic bricks with some script? In my script I ...
5
votes
3
answers
3k
views
How can I spawn a moving object in BGE?
I know how to use the Add Object actuator to add an object while the game is running, but the angular velocity is not affecting the mesh. Is there something else I should have done as well? ...