Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / need help!!! side scroller

Author
Message
Side scroller background
9
Years of Service
User Offline
Joined: 14th Nov 2015
Location:
Posted: 14th Nov 2015 00:44
need help!!! im trying to make my background side scroll. but some reason its not working. it was working before though i might have changed something but i don't remember can anyone tell me if there is something wrong?

Attachments

Login to view attachments
Side scroller background
9
Years of Service
User Offline
Joined: 14th Nov 2015
Location:
Posted: 14th Nov 2015 00:55
I'm trying to make a side scrolling background, and I'm not sure what im doing wrong can anyone help plz?
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th Nov 2015 13:36
Could you post the pertinent code in a snippet? The DBPro file you attached will not show us anything. You could attach the .dba file, but it would be easier / simpler to just post your code related to the background scrolling.
So many games to code.....so little time.
Side scroller background
9
Years of Service
User Offline
Joined: 14th Nov 2015
Location:
Posted: 16th Nov 2015 19:54
Side scroller background
9
Years of Service
User Offline
Joined: 14th Nov 2015
Location:
Posted: 16th Nov 2015 20:15
This is it.




LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 17th Nov 2015 16:46
The problem is that you are calling the _vScroller subroutine and returning from it before the DO - LOOP fully executes. Try this:


I must say that I have never seen scrolling done like that before, but it does indeed work. It actually runs at 316 FPS on my rig.
So many games to code.....so little time.
Side scroller background
9
Years of Service
User Offline
Joined: 14th Nov 2015
Location:
Posted: 20th Nov 2015 22:31
Thanks a lot man and i'll take that as a compliment
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Jan 2016 06:13
I get around 420 fps.

Just for fun, using this method you could add a sine wave to it!

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-11-23 14:52:42
Your offset time is: 2024-11-23 14:52:42