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 with a 2D world

Author
Message
jazzman
20
Years of Service
User Offline
Joined: 13th Dec 2003
Location:
Posted: 17th Dec 2003 03:35
Ok im trying to do something realy simple and ya'll are gonna laugh at me but. I want to make a 2D world made in paint k. . .then i want a sprite to stay centered on the screen and when i move the sprite the world under the sprite moves (this is a top down kinda world). Now i know how to use the scroll background command but and the load and get image commands but i cant seem to paste other images onto the world that are off the edge of the visible screen. i get an error bitmap to small to get. . . i tried to make a realy big bitmap like 10000x10000 LOL didnt work computer crashed windows SUX (sorry had to slip in my microsoft jab for the day) any ideas. plus once i get all this working how would i code some boundries? thanks all
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 18th Dec 2003 13:27
Hi,

You could try making the background as a sprite (with your player in the centre of the screen), when you hit left/right, move the background and not the player...

Hope it helps,
Cheers.

Login to post a reply

Server time is: 2024-11-25 20:48:19
Your offset time is: 2024-11-25 20:48:19