This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:getmousecell [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:getmousecell [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <- [[.: | + | <- [[.: |
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | | MouseX MouseY |
| === Description === | === Description === | ||
| + | Gets the current cell coordinates of the mouse pointer. | ||
| + | |||
| + | See also: [[.: | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | stack.Push(new Data((int)(wp2.x / (float)GameSpace.GRID_SIZE))); | + | GetMouseCell ->X ->Y #Simply Gets coordinates of mouse |
| - | stack.Push(new Data((int)(wp2.y / (float)GameSpace.GRID_SIZE))); | + | |
| - | + | ||
| </ | </ | ||