Questions tagged [logic-bricks]
Logic bricks are the sensors, controllers, and actuators in the Logic Editor. They are used in the BGE.
44
questions
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 ...
2
votes
1
answer
1k
views
Near/radar/ray/collision sensors refuse to work
None of the physics sensors in my game work, I'm trying to create an AI man that chases after a player, but for whatever reason, he just won't sense the player, I've tried copying and pasting the ...
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 ...
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 ...
0
votes
1
answer
670
views
Make modifiers update in the game engine
I am trying to make a boat work in the game engine, and I have a Boolean modifier on the water cutting a spot in the water plane for the boat. The problem is, that when the boat moves, and the mesh ...
0
votes
2
answers
1k
views
Rigify automatically link UI text file in 2.8
Rigify rigs rely on their rig_ui.py file to generate the addon's interface. If you link a character collection into a new file and proxy the rig, the UI does not generate because the rig_ui.py file is ...
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 ...
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 ...
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
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 ...
3
votes
1
answer
861
views
How can I add/subtract/multiply/divide properties in the Game Engine?
I am creating a Random Math Engine using the BGE and I am wondering how I can do mathematical operations between two properties. Example: "Property 1 + Property 2" and then it would output the answer ...
3
votes
1
answer
346
views
Bullets fall with gravity issue
I have some bullets that simply have an always sensor and motion, but since I have gravity on, they fall in a weird way. They do not fall and hit the ground on the tip of the bullet, but rather hit ...
2
votes
1
answer
4k
views
Program keyboard input?
I need to run some basic physics simulations on a headless machine and I'd like to program agent movements based on function outputs (e.g. "move left")-I have some code that programs WASD to move a ...
1
vote
1
answer
797
views
BGE: Create a sight system for an enemy
What I want to do here is create a system where an enemy object has some kind of "sight", as in the enemy can detect a player object when the player object comes in its field of view. I am currently ...
0
votes
1
answer
839
views
AddObject Actuator scripting
I have set up a camera with a script and logic bricks so that when I use left mouse button it creates an object and places it at the specific click location.
Nevertheless, I encountered an issue with ...