Error while subtracting values to a variable

Started by RayCanary on Mon, 05/24/2021 - 17:37

Topic category: Troubleshooting, bugs, and solutions

Last seen on 07:24, 17. Jul 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Error while subtracting values to a variable
Mon, 05/24/2021 - 17:37

I need to subtract 1 to a variable when a button is pressed, but instead of subtracting 1 it subtracts 2.

in order to do that i did so:

Set Global: var to: Get Global: var - 1

What did i do wrong? 

Last seen on 20:39, 27. May 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
could you show the procedure…
Wed, 05/26/2021 - 00:11

could you show the procedure so i may see what might be going wrong