The boolean tag has no usage guidance.
0
votes
0answers
29 views
Bug in quadtree based 2d terrain generation in Java & LibGDX
Relevant Code
Where the create quad function is called in the main application listener render game loop:
if (player.getDX() != 0f || player.getDY() != 0f) {
environment.createQuad(player....
4
votes
1answer
128 views
How do I get diagonal 3d movement when two buttons are pressed?
I have a model moving using root motion. Currently, it's moving in 4 directions; Forward, Backward, Right, and Left.
Now, I want to make the character move in 45 degrees. I made a chart to understand ...
0
votes
1answer
38 views
Playing an animation all the way through with one quick keypress with Mechanim Unity
I have an if statement inside of the Update function that is only called if three other conditions are met. The problem is that right now the function sets a boolean to true which causes the animation ...
-2
votes
1answer
18 views
Unity3D: Entering a trigger disables a few bools for no reason
I'm trying to make it so when an object enters a collider with the tag "Down" a single boolean turns false, but the problem is that more than one booleans(canGoUp, canGoLeft, canGoRight) are turning ...
3
votes
2answers
2k views
Is there a random command for Boolean variables in Unity C# [closed]
Can you randomly choose a Boolean's value in Unity C#. I tried random.range, but it only works with floats. Here is an example of what I'm trying to do:
Boolean = (random boolean value command)(false,...
1
vote
0answers
25 views
How to save characters in iOS game app
BOOL = GREENIE, UIButton =GREEN. When I click the GREEN button, I coded that now you play as GREENIE character. However, I don't know how to code it that the game always remember that the I clicked on ...
3
votes
1answer
156 views
If-clause in GLSL
I read a few thing about, that in GLSL both sides of the if-clause is executed, so do you have any idea for a workaround for this one:
uniform int uses_bones;
uniform mat4[] bone_transformations;
...
0
votes
3answers
166 views
Drawing sprites only under certain conditions - alternatives to using 'if statements'?
Within my game (which is Java/Android), I wish to draw a sprite only under certain conditions, so up until now, I've been using if statements to accomplish this. Something like so:
if (powerUpActive)...