x, y (deprecated)
Deprecated — kept for older projects, avoid using this in new code.
Problem it solves
Older projects used `pos` to create a location value.
What this block does
Deprecated. Creates a location value at the given x, y coordinates. Use `point` instead for new projects.
The block
Block ID: spriteutilpos
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| x | number | — | X coordinate |
| y | number | — | Y coordinate |
Returns
Position — A location value (extends util.Point).
Example
let target = spriteutils.point(80, 60) console.log(target.x)
Add the extension
Add github:jwunderl/arcade-sprite-util to your project, or open: Import arcade-sprite-util.