So, if I wanted an event that worked only if the value of a variable was a multiple of 4 or 8, say, or even test for only odd or even numbers?
Develop games in your browser. Powerful, performant & highly capable.
multiple of 4: var%4=0
for multiple of 8: var%8=0
even: var%2=0
odd: var%2=1
% means MOD
dont forget a condition for zero
multiple of 4: var%4=0 for multiple of 8: var%8=0 even: var%2=0 odd: var%2=1 % means MOD
Works perfectly, thankyou!!