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.

2D All the way! / scroll Background

Author
Message
Preveter
16
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Germany
Posted: 30th Dec 2007 23:01
Hi@all!

I´ve got two problems,that makes me crazy!
I want to create a 2D Sidescroll Game like Sonic,Mega Man,Super Mario etc.
Since 3 weeks i try to find a way,to scroll my background.
I founded some Tutorials and examples about scrolling here but they are always about scrolling a Text or scrolling like a spaceshooter(automatically).My problem is:
When the player has reached a certain position x on the screen the background (a textured plain) have to scroll so far like the player has gone from the position x.
I thought the command "scroll object texture" is a good method but it wasn´t.
The second problem is to mirror the player sprite,(The sprite is from a spritesheet)when he goes in the other direction.(From left to right and vice versa)
Can anybody show me a way in the right direction,please?
Here´s my Code so far:





Thanks for your help and a happy new year for you all!
Deathead
17
Years of Service
User Offline
Joined: 14th Oct 2006
Location:
Posted: 30th Dec 2007 23:46
Preveter: These threads need to be in the Newcomers section. But I think someone "Will" help you.

[href=http://www.freewebs.com/ignitestudios/]

[/href]
Preveter
16
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Germany
Posted: 1st Jan 2008 17:25
Oh sorry!
I don´t knew where I had to take this Thread.
I will post it again there,so that this Thread can be removed.

Login to post a reply

Server time is: 2024-05-17 12:01:03
Your offset time is: 2024-05-17 12:01:03