Hello,
I'm trying to get position and size of sprite and texture but I'm getting this error:
error is on wsprintf...
Unhandled exception at 0x74df9d60 in Lucid Dreaming.exe: 0xC0000005: Access violation reading location 0x00000320.
part of code:
Vector2u PlayerSize = tBackground[0].getSize();
char test[512];
wsprintf(test, "%s", PlayerSize);
MessageBox(NULL, test, NULL, NULL);
and position is returnin NULL value
Vector2f PlayerPosition = sBackground.getPosition();
char test[512];
wsprintf(test, "%s", PlayerPosition);
MessageBox(NULL, test, NULL, NULL);
also is there any way to return them as int x,y?