ugokeru
This commit is contained in:
parent
1c893940ac
commit
cfcfd3e263
21 changed files with 227 additions and 7 deletions
17
eastern flames/objects/ARTICULATOR/Step_0.gml
Normal file
17
eastern flames/objects/ARTICULATOR/Step_0.gml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
c_input();
|
||||
if select {
|
||||
var mousex = floor(mouse_x/global.tilesize.x);
|
||||
var mousey = floor(mouse_y/global.tilesize.y);
|
||||
log(mousex, mousey);
|
||||
if mousex < array_length(global.map) {
|
||||
if mousey < array_length(global.map[mousex]) {
|
||||
var i;
|
||||
for (i=0; i<array_length(global.map[mousex][mousey].contents); i++) {
|
||||
if global.map[mousex][mousey].contents[i].object_index == o_unit {
|
||||
log("selected a guy");
|
||||
c_selectunit(global.map[mousex][mousey].contents[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue