User Tools

Site Tools


crpl:docs:getmousecell

<- CRPL reference <- Input Commands

GetMouseCell

ArgumentsResultNotation
X and Y game cell coordinates of mouse – i1 i2

Description

Pushes the X then the Y game cell coordinates of the mouse to the stack. 0,0 is located in the UPPER LEFT of the game map with positive X going right and positive Y going down.

Examples

#Create Creeper where the mouse is
GetMouseCell ->y ->x
SetCreeper(<-x <-y 10)
crpl/docs/getmousecell.txt · Last modified: 2021/02/05 11:44 by Karsten75