Page 1 of 1

PocketFrog: How to get X and Y position of surfase or rect??

PostPosted: Mar 26, 2005 @ 2:45pm
by gl0om

PostPosted: Mar 26, 2005 @ 5:00pm
by BIGBEN

PostPosted: Mar 27, 2005 @ 7:55pm
by Guest

PostPosted: Mar 27, 2005 @ 9:29pm
by BIGBEN
If you want real sprite animation, you can look this Conan's tutorial:
:wink:

P.S. If you want to get answer for some absolutely stupid and simple questions, that you don't want to ask, you can make a search for earlier threads using BIGBEN as an author keyword :lol:

PostPosted: Mar 27, 2005 @ 10:59pm
by gl0om

PostPosted: Mar 27, 2005 @ 11:21pm
by fast_rx

PostPosted: Mar 28, 2005 @ 12:41am
by BIGBEN
If you use TCHAR, then use only macro names for functions and _T("") macro for known text.
_itot instead of _itow
This way you can use one code for PC and PPC

------------GAME LOOP--------------
***
TCHAR* ch = new TCHAR[7];;
_itot(stylus_p.x, ch, 10);
DrawText(hDC, ch, 20, &rcString1, DT_LEFT);
delete[] ch;
-----------------------------------

If you want to copy some text don't forget about + 1 character for null termination:
TCHAR* ch = new TCHAR[_tcslen(SomeCharText) + 1];;

Again you can search in this forum, just use TCHAR as a keyword. :wink: