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! / background interaction

Author
Message
Corbula
15
Years of Service
User Offline
Joined: 4th Dec 2008
Location:
Posted: 23rd Jun 2009 18:13 Edited at: 24th Jun 2009 13:50
Does anybody know how to make sprites interact with a background.

I need it to get my background to scroll with the character sprite, so when the sprite gets to the middle of the screen the background will then scroll left, but once you have gone this way you can't go back.

If you don't understand this, think Mario.

Also in the background i have gaps in the floor. I need to make it so that you can walk along the floor but when you come to a gap you drop through.

Here is the code i have so far:


Any help will be greatly appreciated.

Login to post a reply

Server time is: 2024-04-27 01:30:06
Your offset time is: 2024-04-27 01:30:06