flyinian
Member
If I have this:
CREATE:
STEP EVENT:
STEP EVENT:
Then the following code should only execute once because Variable_A is initially true then set to false.
STEP EVENT:
I've been doing this and haven't had any problems w/ this until now. This is probably a pointless post because I'll probably find the issue tomorrow after a break.
CREATE:
GML:
Variable_1 = false;
Variable_A = false;
STEP EVENT:
GML:
if(a == b)
{
Variable_1 = true;
}
else
{
Variable_1 = false;
}
GML:
if(Variable_1)
{
Variable_A = true;
};
STEP EVENT:
GML:
if(Variable_A)
{
// Execute code.
Variable_A = false;
};
Last edited: