![]() ![]() ![]() Then the script would need to be altered such that on each iteration you'd check if palette>0 and swap out accordingly. I would hope GM decompiles its sprites before the game runs, but if it doesn't, that'd explain why sprite reading functions are so slow. As I said in the Game Information, a GMSPR file is a seriously compressed file. I took one look at the data and said, "Fuck it". Palette-swapping a PNG file would be faster than workign with GMSPR files.Īs I said in the readme, if you're getting confused by arguments (btw, argument0 is used as a normal script-pass argument) and alarms without events, then you need to expand your mind and stop thinking inside the box, which is what it means when you get confused in that way. Nowadays I can look at a code I typed up using arguments and it not only makes sense right away, it also looks aesthetically pleasing (to me at least). yeah I have a database of what each alarm actually corresponds to. ![]() It's not efficient, maybe, but some alarms I end up memorizing just like i have RAM offsets memorized. The way I see it, alarms and arguments are recognized by GM so using them as temporary or local variables (although when used outside of a script arguments are global variables) makes them get highlighted so they stand out in the code that makes it a lot easier to read the code for me. It wouldn't make any difference it'd just change the excuse from being, "That's not what those variables are used for," to, "Those variables don't make any sense." If you think that example is bad, then how about this example: Go through my code and make the following substitutions: Look at it this way: The only real issue you can cite against me using arguments and alarms is that you and the rest of the GMC have preconceived notions of what arguments and alarms are for. You'd complain that the variable names were nonsensical and you couldn't understand the code because none of the variables made sense. In all fairness, that last example would make a LOT of sense if you copied that into Google Translate for Basque->English. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |