Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Mod command returning the wrong value?

Author
Message
Ohwrake
6
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Belgium
Posted: 4th Sep 2018 13:54
Hello there, I'm using the Mod command to check if a row is even or odd but it returns the wrong value.
Could anyone check if something is wrong with my code or something I missed?
Thank you in advance.

function to check:


returns 1.

The author of this post has marked a post as an answer.

Go to answer

Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 4th Sep 2018 14:33 Edited at: 4th Sep 2018 14:34
This post has been marked by the post author as the answer.
Its because your checking the y value

"if y = 0"

you need to get the result of the mod operation then check it

Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 4th Sep 2018 14:36

Login to post a reply

Server time is: 2024-11-23 15:14:53
Your offset time is: 2024-11-23 15:14:53