You are not logged in.
Pages: 1
I noticed some scripts require that "Treat Uninitialized Variables As Zero" (TUVAZ) be unchecked, such as collision_triangle_init().
Well, a simple way to check that is something like this:
if (variable_global_exists(""))
show_error("Error 0xn00b: You fail at using Game Maker. Treating unknown variables as zero is a disease", true);
EDIT: The indentation is not working.
I think comparing human memory to computer memory is like comparing apples to oranges. What I can't remember today, I might remember tomorrow. With computer memory it either remembers something or it doesn't. Human memory is just a completely different beast in my opinion, too abstract to be compared to computer memory or measured. This is all just my speculation and opinion though.
Ah, I didn't know Game Maker was cross-platform.
I was looking at this script here: http://www.gmlscripts.com/script/string_wordwrap and something caught my attention:
if (is_real(brk)) brk = "#";
Yes, a "#" is a newline in Game Maker, but wouldn't it be better to use a REAL new line by default?
if (is_real(brk)) brk = chr(13)+chr(10);
or
if (is_real(brk)) brk = "
";
Correct me if I am wrong. I do realize that I could simply pass the desired brk argument.
By the way, it's nice to see GMLscripts.com back up and running. I don't know how long the site was down waiting for a domain name renewal, but long enough for me to notice.
There's a typo in the collision_triangle() script:
// Bounding box check
xmin = min(x1,x2,x3);
xmax = maX(x1,x2,x3); //Typo is here, maX() you need max()
ymin = min(y1,y2,y3);
ymax = max(y1,y2,y3);
if (not collision_rectangle(xmin,ymin,xmax,ymax,object,false,false)) return false;
EDIT: Oh, the code tag here auto highlights. I wish the GMC code tags did that.
Pages: 1