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 / Refining sprite offset commands for a scrolling background

Author
Message
Blue Shadow
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 5th May 2004 00:37
Hey all,

I wondered if anyone could help me with this code. I have loaded my background image and player image into DBP and am trying to move the image and make the background image scroll. I have it working reasonably well but i wondered how the best way would be to make the player scroll with the background. For example when the background image stops scrolling the player image appears to go a lot slower. It is very difficult to explain so i have posted my code. If this is no good then just emailme and i will send you the projects folder.



Any help would be greatly apreciated,Cheers,

Michael


Visit the Code Monkey's website at http://www.codemonkeystudios.tk
Blue Shadow
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 5th May 2004 10:37
*bump*


Visit the Code Monkey's website at http://www.codemonkeystudios.tk
Blue Shadow
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 5th May 2004 19:24
I have now uploaded the project folder to my website where you can download all the media and ciode for the game. It is in a .rar format so I hope this is not a problem foranyone. Howeve, i will change it to .zip if anyone wants me to. You can download it here at:

[href]http://www.freewebs.com/codemonkeystudios/Jungle Jim.rar[/href]

Thanks in advance,

Michael


Visit the Code Monkey's website at http://www.codemonkeystudios.tk
Blue Shadow
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 6th May 2004 21:26
Has anyone had a chance to look yet?


Visit the Code Monkey's website at http://www.codemonkeystudios.tk
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th May 2004 15:51
The problem that you have is that you bumped your own post. Generally when I browse through this forum, I check for posts that haven't already been picked up by someone else.

Anyway, your problem is with the backsave option of sprites. IMO, it's something you should always switch off.

Heres the code with changes commented (search for IanM):



*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Blue Shadow
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 7th May 2004 22:01
Thanks for your help Ian M. I'm sorry for bumping my thread. I won't do it again.

Cheers,

Michael


Visit the Code Monkey's website at http://www.codemonkeystudios.tk

Login to post a reply

Server time is: 2024-11-26 16:23:41
Your offset time is: 2024-11-26 16:23:41