All Questions
Tagged with game-engine scripting
17
questions
2
votes
2
answers
282
views
How would I go about creating a 3D MMORPG Mouse Look?
How would I go about creating a 3D MMORPG Mouse Look? I have created a 3D Space Rpg that is almost finished with success so far. However, I didn't have a clue, how I would attempt to make a Mouse Look ...
10
votes
4
answers
9k
views
Can python be used to edit a Text Object?
That is, can python code replace, for example, a single letter in a Text Object or insert a letter or string into a Text Object.
Note that I'm not talking about replacing a Text Object with some ...
4
votes
1
answer
699
views
A different kind of mouselook script?
Is there a mouselook script that's exactly the same as the classic one except it moves left and right, not up and down. If there isn't one then can you show a property hook script that enables/...
1
vote
1
answer
2k
views
How to use Blenders GUI? [closed]
I was making a game with blender like creating buttons and stuff but um... I don't know how to use Blenders API, or GUI. I wanted to create functioning buttons and creating user input on the screen ...
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 ...
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 ...
0
votes
3
answers
477
views
Damped Steering>Seek via Python
I'm attempting to have a central turret object turn to point to a moving target. The turret is always in the center of the scene (un-moving). Using the Steering>Seek actuator is too fast and allows ...
8
votes
1
answer
3k
views
Create custom physics for an object with python
Blender has physics options which we can enable for our objects - cloth , fluid etc. Is there a way I can add a custom physical behavior to my objects, where this behavior is modeled as a python ...
5
votes
1
answer
571
views
How to instantly stop the rotation of an object in BGE?
I can't stop the rotation of the camera(around the z global axis), in BGE. The camera is set to dynamic. Here is part of the script, the only one that affects rotation.
...
4
votes
1
answer
1k
views
3
votes
3
answers
1k
views
Pyserial and Arduino every Time new Connect problem
I have a potentiometer and I want this to change the location of my cube. My script run is on the cube, connected to an "Always" actuator with True Toggle.
My problem is this line:
...
3
votes
1
answer
778
views
Running a script via module vs script mode in the BGE
When a script is run via Script mode through the Python Controller there is no need to have import bge in the script.
Why does running a script via Module mode ...
2
votes
1
answer
711
views
How to toggle/highlight interactable items?
in many games the items you want to pick change form when you are near or you are aiming at them. Sometimes they change color to a translucent green, sometimes they shine more than the rest objects in ...
2
votes
1
answer
1k
views
How can I update a text object dynamically in the Blender Game Engine?
I have seen examples of HUD's showing a dynamic count of either ammunition or objects. I have the general idea of what I want, but I need to know how to update a text object dynamically in the game ...
0
votes
1
answer
980
views
How to create a line with the bge module, step by step
I want to draw a line using the BGE module. Start from this point:
From this question: Python script fail, look in the console for now
EDIT: I just tried the code you have and it works fine. I ...