Game Maker's Garage Forum
Game Creation => GameMaker => Topic started by: Silverwind on June 13, 2008, 08:27:17 AM
-
That glitch where click areas occasionally resize to random proportions in the editor has returned. It's a real nuisance, as they often resize to so small a size that editing becomes impossible.
-
I don't remember hearing about this one. Does it happen all the time in your current project? If it does are you able to send it to me so I can take a look?
-
You can always OPTION click on a click area and change its size and move it around.
-
I don't remember hearing about this one. Does it happen all the time in your current project? If it does are you able to send it to me so I can take a look?
Unfortunately it's rather hard to recreate the glitch, but yes, it happens more often in some projects rather than others. I remember it happening in Silver's RPG Engine on the cave card when I first brought it out, and it's already happened twice on the game I'm gonna make for the GMG contest. It seems to happen randomly when you close a button script's property window, and I don't think I've ever experienced it on a card with less than 3 click areas. I'll email you the game.
You can always OPTION click on a click area and change its size and move it around.
Yeah, but the problem is that the click areas usually (though not always) resize to the size of the small black box that you need to click on in order to resize it. Sometimes they become the same size as other click areas, and are placed on top of the one they've copied the size of.
-
Maybe you should try
ON MOUSEUP
IF mouseX <= certain point
IF mouseX >= certain point
IF mouseY >= certain point
IF mouseY < = certain point
Do click area stuff
END IF
END IF
END IF
END IF
END MOUSEUP
-
That would work, but would be allot more time consuming. Funny enough, I've used something like that in one of the click area codes, to detect if the player has clicked on a specific part of the object. :)
-
You could also put it in a loop script instead of the mouse up script to make it so if you move your mouse over an object it activates it.
Hey Al you could also add some code for if the mouse is in between four points command like
CLICKBOX mouseX mouseX mouseY mouseY
or something like that
-
Or just to see if a sprite is beyond that or in an area, like:
SPRITEAREA x y sx sy