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.

DarkBASIC Discussion / Sprites Question

Author
Message
LordDario
22
Years of Service
User Offline
Joined: 26th Apr 2003
Location:
Posted: 25th Jun 2005 01:10
Two questions actually... Whats the limit for sprites, and if you have a pretty large 2d rpg going, and you had a really large town map with tons of sprites, wouldnt that cause a pretty good amount of lag. Wouldnt every tile be a sprite or something?
Jake Blues
20
Years of Service
User Offline
Joined: 19th Jun 2004
Location: United States
Posted: 25th Jun 2005 06:49
Quote: "you had a really large town map with tons of sprites, wouldnt that cause a pretty good amount of lag. "


Depends how you would do it. And also how fast your computer\graphics card is.

You could make each tile a sprite but retexture the sprite when you move up\down\left\right according to map data. That wouldn't make too much lag, if any.

Leeorg
19
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 5th Jul 2005 08:31
According to the instruciton manual, you can use around 60000 Sprites +. A few years ago I was creating a RPG similar to Zelda on a platform using a resolution of 1200,1000 with the background being created from sprites of 100,100. With the chracters and info and extras on top I wasn't likely to use nay more than 150-180. And only 30-60 of these were ever going to be refreshed. Obviously a scrolling screen would take more but then base it on Zelda for the SNES and limit your areas and sprite numbers shouldn't be a problem. If you start to experiance a slow down due to the number of sprites try SET SPRITE X,?,? where the first ? sets the backsave (remembers what was there before sprite is drawn) and the second ? selects whether the colour black (RBG: 0,0,0) is transparent or not. Apparently this will increase your speed. Hope this is of any use?

Login to post a reply

Server time is: 2025-05-22 22:33:49
Your offset time is: 2025-05-22 22:33:49