Msg.post sprite x,y coordiantes

Hello,

I did some digging and I’m not seeing it, but I’m sure it’s here…somewhere…

I’m semi-new to defold and what I’m trying to accomplish is something probably pretty simple to a lot of you. I have a working model of a sprite that I can control on screen with WASD movement. What I would like to do is simply display the sprites x,y coordinates via a msg.post. Nothing more. Can someone perhaps direct me to a post that I probably somehow overlooked on how to achieve this? As always, I greatly appreciate anyones help.

Thanks you

You cannot modify or get the sprite’s x,y position at runtime. You can parent the sprite to a GO and get/set that GO’s x,y position.

1 Like
2 Likes