All Questions
Tagged with game-engine scripting
201
questions
0
votes
0
answers
45
views
The script only works once in UPBGE
the solution (if it helps someone)
just remove space in ray2 (thanks musikai in blenderartists)
if ray():
own["key"] = " "
cont.owner.state = 1
to
if ray():
own["key"] = &...
0
votes
0
answers
71
views
UPBGE error. Why can't I run my script via Logic Node Editor?
Why does an error occur when running a script using a "Run Python Code" node? For some reason, in the error description my script is called a module
0
votes
0
answers
62
views
How can I get a object to face the Direction of its Linear velocity?
I using the UPBGE game engine and I am trying to get an object to turn towards the direction of it's linear velocity vector.
Here is an example of what I have so far:
https://drive.google.com/file/d/...
0
votes
1
answer
52
views
How to invert game theme colour?
I wish to make a black/white UI theme in my current project , but setting object colour to all the UI lags the game a bit and takes forever for me to do it.
To achieve this I had to connect every ...
0
votes
1
answer
63
views
Can Script using object work as what "make single user" does?
A while ago I’ve read about what “Make Single User” does and tested it. Which was totally amazing and mind blowing.
e.g. later I learned about few Python scripts with which it is possible to move UV ...
0
votes
1
answer
206
views
How to edit speed on python script?
This might be a very simple problem but my knowledge on programming is limited to logic bricks. I ironically have a player script which determines the speed of my character and was wondering how I can ...
0
votes
1
answer
594
views
How to increase character movement velocity over time? (UPBGE)
I found a 3D character controller setup online and one thing I wanted to ask is how to make movements smoother by easing velocity. Is there a way to edit the python script to make acceleration and ...
0
votes
1
answer
393
views
How to open URL upon clicking an object? UPBGE/BGE
Hello. I wanted to know if it would be possible to open a website (hyperlink) after clicking on an object. Normally you can have a left button sensor and a mouse over sensor working together so that ...
0
votes
1
answer
188
views
bpy add object in game
is it possible to add an object inside the game engine with upbge 3.X.X while having game physics work properly ?
What I'm doing is:
...
0
votes
1
answer
116
views
how to send property value as a message sent by multiple object?
i was working on a game and i need to send multiple property values from different objects through different scenes using message body set to "property"
any ideas ?
0
votes
0
answers
407
views
capture data from different cameras
I need this for my video game that I want to start on in Blender Game Engine.
I have not figured out how to use multiple cameras and make them give data out without them being active cams or without ...
1
vote
0
answers
42
views
Open and close hand in variable speed?
I have a hand simulator running at a constant speed. Hand opens and closes according to EMG data from USB connection. I added the project running at constant speed below. I have to make this simulator ...
1
vote
1
answer
30
views
Determining the object detected in sensor
Is there a way to determine which object has been detected with the sensor?
For example, if the owner's collisions sensor turns positive, is it possible to get the object collided with?
Something ...
0
votes
1
answer
101
views
how can I share variables between glsl and python in the bge?
I am currently writing a glsl shader in the bge,
My question is, if I have glsl embedded into my python script, how can I if possible share memory/variables between my glsl and my python so the below ...
0
votes
1
answer
28
views