English How to get a map sprite x, y position?

2 replies
Goto Page
To the start Previous 1 Next To the start
Up
The Dark Shadow
User
Offline Off
As the title says, Note that "map sprite"

Would be appreciated.

EDIT: Probably
entity(x, y)
?
edited 2×, last 07.05.20 09:35:02 am
07.05.20 10:49:16 am
Up
Cure Pikachu
User
Offline Off
Like the region where the sprite from cs2d entity env_sprite is covering?
Code:
1
2
3
4
5
local x1, y1, x2, y2
x1 = x * 32 + entity(x,y,"int2")
y1 = y * 32 + entity(x,y,"int3")
x2 = x1 + entity(x,y,"int0")
y2 = y1 + entity(x,y,"int1")

where
x
and
y
represent the x and y tile position of the sprite entity itself.
IMG:https://i.imgur.com/uUrye71.png
IMG:https://i.imgur.com/xpsyQRX.png
07.05.20 01:34:18 pm
Up
The Dark Shadow
User
Offline Off
I was not aware about this command existence when I asked, Thanks anyway
To the start Previous 1 Next To the start