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.

Author
Message
Red general
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 5th Feb 2003 15:47
I tried to make a 2D RPG (like Zelda), but I wanted it to scroll in 8 ways. i wrote a code for this where it would have lots of screen size sprites in a grid, and by say presssing right they would all move right, giving the impression of the character (at the centre) was moving 8 ways.
However the more screen size sprites I got, the choppier it became. How do I solve this?

Also how do I, when the sprite at the centre hit a sprite (say for example a hedge) he could not go any further into the hedge and would stop, but woudl still be able to back away.

Thanks RED GENERAL
My computer melts regulary - perhaps it likes being fondue
freak
21
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 5th Feb 2003 16:08
However the more screen size sprites I got, the choppier it became. How do I solve this?

Sprites are just slow to use in DB. They say they are faster in DBpro, but I think the best solution is to use 3d plains.

For the collision problem (the answer is the same whether u use sprites or 3d objects): if there is any collision, your object has to go back to its previous position... (when working in 2d, you have to move the background to its previous position)

Killer Sponge
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location: United Kingdom
Posted: 7th Feb 2003 14:48
how about using wht i had used, Make a map using a second bitmap which has the tile images pasted to it (So if you viewed the bitmap the entire map would be there) and then take another image form it using "GET IMAGE" corrosponding to players position and screen size not forgetting that you cant get an image < 0 or greater than width/hieght. Then place your character on top, this gives the view of many 2d scrolling games and can be used in alot things.
Hoped thats explained well.

Login to post a reply

Server time is: 2024-05-18 16:06:53
Your offset time is: 2024-05-18 16:06:53