I need this block code to be compressed by at least 2 blocks
i need to brodcast message on channel in the last “do”
also the x and y properties are coords for the tiles of 2048
I need this block code to be compressed by at least 2 blocks
I’m not sure if a blank number for setting the property sets the property to 0, maybe try that? Otherwise I can’t really see ways to compress this.
I can only think of a way to compress it by one block, not two. :(
i’ll check to see what happens
Edit: it doesn’t
I also notice two of the ifs are checking the same thing (first and third), could you combine them?
Edit: It looks like you might be able to delete the second elseif without changing anything else.
i did not see that, that might do the trick
It should compress your code by 5 blocks, which is more than enough.
thank you NoNoWahoo. I realized i did way too many else if statements when i could just done "else
brodcaste message on channel w
looping the entire process
tysm
Edit: with more realization done, I simplified the code all the way down to 26 blocks
I don’t think he 2nd block of the of statement will ever run because it will only run if the first statement ( (0,2)=(0,3)) is false, and it requires that first statement to be true.
Wow, I’d say you shaved off two blocks like you wanted.
You can remove the elseif and the else and just broadcast on w at the end of the code.
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.