Path: chuka.playstation.co.uk!news From: "pal" Newsgroups: scee.yaroze.beginners Subject: Re: My Sprite Viewer Doesn't Work Date: 3 Jun 1999 17:55:15 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 24 Message-ID: <01beade9$f30c3000$ad9524c3@pal-s-omnibook> References: <7iekt2$sfd26@chuka.playstation.co.uk> NNTP-Posting-Host: Marseille-4-173.club-internet.fr X-Newsreader: Microsoft Internet News 4.70.1155 I haven't been able to fix your code, but I noticed one error (surely a typo, but the compiler won't barf at it) : in main.c at line 68, for initGame to be called you must add parenthesis : initGame() ; The form without parenthesis just evaluates "initGame", which is the pointer to the function - i.e. it does nothing. I also noticed that at the first frame, your code works ; after that it messes the sprite up. To see this, add a line like : {long m ; for (m = 0 ; m < 1000000L ; m++) ;} at the end of the loop to make the program pause between frames. Change also the background color in GsSortClear to (100, 100, 100) (don't know why, but when it's black something disappears - you''ll see what I mean when you try). Also, the screen height in PAL mode is 256, not 240. Changing this causes the first frame to not work anymore, however... weird. I suspect something is littering your sprite's memory - I tried to reinit the sprite every frame, and it works. But this is not what should be done ! hope this helps, pal