Horizontal Scroll Mode question
Posted: Thu Dec 07, 2017 7:06 pm
Hi
I'm experimenting with Scrollmodes and to my surprise I will not be able doing what I wanted.
I didn't know that we had to set the same Scrollmode for both Plan using VDP_setScrollingMode().
My game is a 2d Jump and Run. I though I could set Line Scroll for Plan B to create different Levels of Parallax.
The thing is that I don't need to scroll per line for Plan A but it seems that it's locked for both Plan A and B and unfortunately it's too slow to call HorizontalScollLine() 2 times.
Ideally I would even prefer a way of scrolling little parts of the Plan in line mode. Line 0-20, Line 100-120. ..
I wanted to see if it was possible to switch the ScrollingMode within the same frame but unfortunately it's not.
I tried Scroll per Tile but to my deception it's even worse because this way I'm even limited to not being able to scroll Y because the Horizontal Tile scrolled Y position doesn't fit to the VDP Memory Plan Lines, it's positionned to the Screen Lines... like sprites. Don't know if you will understand because it's hard to explain
Before continuing my Project I really need to know if there's a way to counter this problem or else I'll have to forget about some nice effects I wanted to add.
Probably if my game would not be so heavy it wouldn't be a problem but I'm almost wondering if it's possible to achieve a 60fps game using these fonctions and some other stuff. Mine is already running at 30fps but using HorizontalScollLine() for both planes slows it down to constant 20. but keep in mind I'm already doing a lot of stuff... Adding the super scrolling was the last heavy code to add to my game before I can concentrate on creating levels. In not too long I should be able to release some screenshots or a small video.
So my question is: is there a way to optimize Per Line Scroll techniques to my needs without having to set and lock it for 2 differents planes ? and if possible, only use PerLine scroll for small sections of my screen.
Thanks for help
I'm experimenting with Scrollmodes and to my surprise I will not be able doing what I wanted.
I didn't know that we had to set the same Scrollmode for both Plan using VDP_setScrollingMode().
My game is a 2d Jump and Run. I though I could set Line Scroll for Plan B to create different Levels of Parallax.
The thing is that I don't need to scroll per line for Plan A but it seems that it's locked for both Plan A and B and unfortunately it's too slow to call HorizontalScollLine() 2 times.
Ideally I would even prefer a way of scrolling little parts of the Plan in line mode. Line 0-20, Line 100-120. ..
I wanted to see if it was possible to switch the ScrollingMode within the same frame but unfortunately it's not.
I tried Scroll per Tile but to my deception it's even worse because this way I'm even limited to not being able to scroll Y because the Horizontal Tile scrolled Y position doesn't fit to the VDP Memory Plan Lines, it's positionned to the Screen Lines... like sprites. Don't know if you will understand because it's hard to explain
Before continuing my Project I really need to know if there's a way to counter this problem or else I'll have to forget about some nice effects I wanted to add.
Probably if my game would not be so heavy it wouldn't be a problem but I'm almost wondering if it's possible to achieve a 60fps game using these fonctions and some other stuff. Mine is already running at 30fps but using HorizontalScollLine() for both planes slows it down to constant 20. but keep in mind I'm already doing a lot of stuff... Adding the super scrolling was the last heavy code to add to my game before I can concentrate on creating levels. In not too long I should be able to release some screenshots or a small video.
So my question is: is there a way to optimize Per Line Scroll techniques to my needs without having to set and lock it for 2 differents planes ? and if possible, only use PerLine scroll for small sections of my screen.
Thanks for help