Simple Change in HelloCollision Tutorial

In the code under the onAction function.
[java]if (value) {
left = true;
}
else {
left = false;
}
[/java]

I think we should change it to

[java]left = value;[/java]

1 Like

Yep, that’s classic silliness.

You can modify the tutorial. Just click on the green Edit button below the section.

Extra points:

  • apply the change to the other directions as well
  • (important) check that the changed code still works as intended, silly mistakes are easy.

I’d have done it right away but I’m too tied up to properly test the change.
Can you do that? That would be great :slight_smile:

Another thing you may find scattered around is stuff like if (!A ¦¦ (A && B)) (prepositional calculas gone mad!)

@wezrule said: Another thing you may find scattered around is stuff like if (!A ¦¦ (A && B)) (prepositional calculas gone mad!)

You just broke my brain. :wink:

1 Like

<3