Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
(Note that this assumes al of your color-coded clickable doo-dads are either instances of obj_Shiny or objects that have obj_Shiny as a parent, as otherwise you'll need to check for every different object type ie. obj_Green, obj_Red, etc., which is pretty tedious and not fun.)
Is it possible to use First.x and First.y globally after
First = instance_place(mouse_x, mouse_y, obj_shiny);
?
So, yes, First.x, First.y, and all that good business will work, provided there is an instance stored to First in the first place. (To that end, you'll want to build some logic around it, ie. if First != 0, before trying to do anything with the variable.) In a match-3 scenario, just make sure to revert First back to 0 when the selecting and moving and such is all complete; if the object in question gets destroyed, looking up First.anything will most likely result in the game crashing, since that object instance (and thus its variables) no longer exist.