currentPositionFor learning events, we want to send consistent data when sending
Position. This helper method generates that data for the
current stage position of mouse or touch. We are returning an object of
{x:int, y:int, stage_width:int, stage_height:int} in unscaled numbers.
{x:int, y:int, stage_width:int, stage_height:int}
normalizePositionpos
[coordSpace]
For learning events, we want to send consistent data when sending positions. This helper method generates that data. In the future, we may return an object with known properties, but for now we are returning an object of {x:int, y:int, stage_width:int, stage_height:int} in unscaled numbers.
pos
createjs.DisplayObject | createjs.Point
A display object or point to use.
[coordSpace]
createjs.DisplayObject
optional
The coordinate space the position is in, so
it can be converted to global space. If
omitted and pos is a
DisplayObject, pos.parent will
be used.
{x:int, y:int, stage_width:int, stage_height:int}
normalizePositionx
y
[coordSpace]
For learning events, we want to send consistent data when sending positions. This helper method generates that data. In the future, we may return an object with known properties, but for now we are returning an object of {x:int, y:int, stage_width:int, stage_height:int} in unscaled numbers.
{x:int, y:int, stage_width:int, stage_height:int}
kartkingdomThe instance of the wrapper for talking to the Kart Kingdom Minigame API.
mediaFor media conveninece methods tracking media events, such as playFeedback, playMovie, etc
offClickParamsSome games need to send additional parameters to the tracker's offClick event. They may set them here as needed. These parameters are appended to the normal offClick data.