Mollusk Posted April 10, 2005 Share Posted April 10, 2005 (edited) Hi everyone ! I just started programming on DS (I have a little experience on gba too), and I seem to get a bug on a Dualis (at least it seems like it's coming from dualis) : when I set a sprite x position at 511 (or -1), maybe anything superior to 255, not sure, the emulator just stops... Does anyone have an idea to solve this, or would it be my code ? (it's exactly the same I used on gba, and the same I use to set the Y position, so I find it pretty weird not to work for x... Thanks in advance ! Mol Edit : using dualis r6 or r7, did it on both... Edited April 10, 2005 by Mollusk Link to comment Share on other sites More sharing options...
mic Posted April 11, 2005 Share Posted April 11, 2005 What kind of sprite is it? 256-color or 16-color? Rotoscaled or plain? H-flipped? V-flipped? Link to comment Share on other sites More sharing options...
Mollusk Posted April 11, 2005 Author Share Posted April 11, 2005 It's a 16 color sprite, no rotscale, not flipped. Just a plain 16 color sprite. And it seems like V-flip hangs up the emu too (I'm not the only one to have gotten that problem...) Link to comment Share on other sites More sharing options...
mic Posted April 11, 2005 Share Posted April 11, 2005 Well, I can see why V-flip would cause trouble since I had inserted a division-by-zero when the V-flip was set while I was debugging, and then left the code in there.. Not sure about the clipping problems, since that code is shared for 256-color and 16-color sprites, but I'll take a look at it. Link to comment Share on other sites More sharing options...
Mollusk Posted April 11, 2005 Author Share Posted April 11, 2005 Ok, thanks. I'll do some testing to see which sprites exactly don't work, and I'll post the demo with the code... I have another quick question (I know I should create another post...), but do rotscales work ? It looks like creating a sprite on the bottom screen with rotscale doesn't work (the sprite doesn't show at all), while it does show on the top screen... Link to comment Share on other sites More sharing options...
mic Posted April 11, 2005 Share Posted April 11, 2005 Rotoscale works for 256-color sprites, but not for 16-color ones atm. Link to comment Share on other sites More sharing options...
Mollusk Posted April 11, 2005 Author Share Posted April 11, 2005 After testing, it does this only on 16 color sprites. Hangs up from x = 490 to 511 (on both screens) Link to comment Share on other sites More sharing options...
Mollusk Posted April 13, 2005 Author Share Posted April 13, 2005 did you end up finding anything wrong ? Link to comment Share on other sites More sharing options...
mic Posted April 14, 2005 Share Posted April 14, 2005 If you have a demo available that uses it, I could test it. Link to comment Share on other sites More sharing options...
Mollusk Posted April 14, 2005 Author Share Posted April 14, 2005 (edited) Ok, no problem You can get the demo here : http://membres.lycos.fr/existepas/bug/ (bug.zip) Edited April 14, 2005 by Mollusk Link to comment Share on other sites More sharing options...
mic Posted April 14, 2005 Share Posted April 14, 2005 Thanks. I'll take a look at it in the morning. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now