All Questions
Tagged with game-engine scripting
201
questions
4
votes
0
answers
2k
views
Controll cube with arduino + mpu6050
So i have an arduino with an mpu6050 attached to it. It is currently set up to send the raw data from the imu sensor to my computer.
I would like to use this data to control a cube in blender with ...
0
votes
1
answer
64
views
Car wont reverse
So I already have a car in the Blender game engine. It drives fine (suspension brakes etc.) However, for some reason it doesn't drive in reverse. If I press the down key quickly, it moves back a bit ...
0
votes
2
answers
51
views
how to specify if a button is in false mode in script
so i just need to know if and how to do this. example one: (all of this will be in blender game engine)
import bge
def main():
...
1
vote
1
answer
574
views
Using Python, How would I get my player to rotate 180 degrees left or right,
More specifically I want the character to rotate a complete 180 when I press the left or right arrow key. But I don't want it to rotate again if I press the same key in sequence.
Example:
Character ...
1
vote
0
answers
48
views
Flight simuation rotation leveling off
I'm creating a flight simulator game with realistic acceleration, but a rotation of the ship doesn't level off after going a little while out, like normal flight games. I need to create some code that ...
0
votes
1
answer
114
views
how to create an object in real time by extruding [closed]
I want to extrude an object in blender game engine to model a terrain. Suggestions please.
0
votes
2
answers
195
views
Is there a way to see the script inside of any of the pre-made Blender modules?
This is for my own self education and understanding. I tried to open some blend files in a text editor just to see what's in there, and it was mostly unreadable. How can I see the individual modules, ...
0
votes
1
answer
2k
views
Bge Python: Move objects along one axis using mouse movement
I don't have experience on python. I want move object and move something like this:
How to make it works like that ? I don't have much time to learn all python commands because i just want it simple....
1
vote
0
answers
1k
views
Moving and spawning objects randomly with python [closed]
I'm creating a simulation in blender whereby the objects move randomly, but where the code I have attached applies.
At the moment, they are stationary.
The code I have attached basically states that ...
0
votes
0
answers
1k
views
Why do I get a invalid syntax error on this statement?
The script was working fine, until I added the screech.volume property. I didn't edit the 'if' statement in any way, but somehow I get this error on the line of the 'if' statement:
...
1
vote
1
answer
287
views
Custom mouse jumps to center when it reaches the edge of the game window
Recently, I've started teaching myself Blender Game Engine with video tutorials. Mostly I utilize Logic Bricks, but I'm attempting to branch out into Python scripts.
I have successfully created a ...
0
votes
1
answer
74
views
is it possible to assign a filter to apply only on a specified material
I found out this custom filter with a bloom effect giving a glow effect. My question is, is it possible to make the filter specific to a specific material making it the only one glowing to simulate ...
0
votes
0
answers
60
views
Blender Array + Ray sensor?
For a simulation, I'm trying to get objects to form an array when sensed by another object in the game engine.
The ray sensor tracks targets just the way I want, so I wanted to use this as the main ...
0
votes
1
answer
573
views
Why is this button only getting triggered when 'mouseover' is true?
So I made a button with a certain function and I have made more buttons like this and they worked. But this one seems to get triggered when only mouseover is true. Even though it should only get ...
0
votes
1
answer
2k
views
How to get an object to spawn at a specific location?
How would one spawn an object at a specific location?
Let's say I wanted this object to spawn in behind another object once the distance was less than 2 blender units.
So the object I want to spawn ...