A
adval25
Guest
Sorry if the question was a little hard to understand. I'll try and break it down:
i've initialized an array cRect[ ] to hold the returned values of a collision check for various collision rectangles.
for (n = 0; n < arbitraryNumber; n++){
cRect[n] = collision_rectangle(32, 32 * n, 64, 64 * n, obj_myMouseCursor, false, true);
}
Okay, so suppose that 'arbitraryNumber' is equal to like 3 or whatever. There are going to be 3 collision boxes on the screen piled on top of one another.
What I want to know is, is there a way to check which value in the array is active when I hover my mouse over its respective collision box?
For example, when I hover my mouse over the rectangle collision area assigned to cRect[2], how can I tell gm to return that cRect[2] is active and not cRect[0] or cRect[1]. The number inside the brackets [ ] (aka the position in the array) is the really important piece of info that I want returned.
i've initialized an array cRect[ ] to hold the returned values of a collision check for various collision rectangles.
for (n = 0; n < arbitraryNumber; n++){
cRect[n] = collision_rectangle(32, 32 * n, 64, 64 * n, obj_myMouseCursor, false, true);
}
Okay, so suppose that 'arbitraryNumber' is equal to like 3 or whatever. There are going to be 3 collision boxes on the screen piled on top of one another.
What I want to know is, is there a way to check which value in the array is active when I hover my mouse over its respective collision box?
For example, when I hover my mouse over the rectangle collision area assigned to cRect[2], how can I tell gm to return that cRect[2] is active and not cRect[0] or cRect[1]. The number inside the brackets [ ] (aka the position in the array) is the really important piece of info that I want returned.
Last edited by a moderator: