Yes, but after some thoughts, I think the whole issue, of whether a more efficient code should be used, belongs in the wiki. This boils down to experience and knowing how to do these things; I have never considered whether an 'and-mask' or something else would be more appropriate. Had I read about it in the wiki, this would be a different story. I would say a simple message that this sprite can be coded more efficiently and being pointed to the wiki would suffice. Of course I don't know all the various functionalities of var act-2's you are considering when suggesting a simpler solution and most importantly how more CPU-efficient this could be done.DaleStan wrote: ... You seem to be suggesting that the error message be changed to "An and-mask would suffice here"? ...
Now, to this random business, this I coded weeks ago and everything seems to work ...
Code: Select all
//!!Warning (174): Using an undefined trigger.
1555 * 15 02 00 AE 80 E0 01 04 ED 00 EE 00 ED 00 EF 00
^^
The other one ...
Code: Select all
//!!Error (129): Offset 5: Only 8 random bits are available.
1520 * 39 02 00 ED 80 01 05 10 ...
^^ ^^