|
Post by sega16 on Feb 6, 2011 10:00:24 GMT -5
I was working on a program that is supposed to scroll the scanlines to create a 3d effect and it works great except for one thing whenever I scroll anything it messes up the sprites.When I debug in gens kmod the tiles go up or down by pressing the left or right buttons. Here is some screenshots: Now when I move or press a or b to change the scanline(I have not bother adding or subtracting 3d when the car moves) Before: After: To add or subtract 3d press a or b Here is the source with all the files to build: www.mediafire.com/?64wcvj7eso2m7xeI hope someone knows what is going on with this.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 6, 2011 13:00:31 GMT -5
Not sure what you're doing .. but the attached sample works fine ( for me ). Attachments:
|
|
|
Post by sega16 on Feb 6, 2011 13:11:54 GMT -5
Did you try my sample? Also when I comment out the scroll command it does not glitch.
|
|
|
Post by Mairtrus on Feb 8, 2011 9:27:55 GMT -5
The problem is in your scrolling subs. When called, they substract the upper line to be scrolled to the maximun number of horizontal lines, right? Well, the maximun number of lines is 224, not 320. That causes that BEX is trying to scroll MORE than 224 lines, and since the Sprites info is stored inmediatly after the HScroll info (in VRAM), that is what is messing the sprites.
|
|
|
Post by sega16 on Feb 8, 2011 16:27:48 GMT -5
Thank you for your help Mairtrus.It was the problem,I must have got width and height mix up.
|
|