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 AppGameKit Corner / How do Dynamic Sprite Allocation

Author
Message
Humildadever
13
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 24th Jun 2017 18:28
how can i do dynamic sprite allocation like one background ?

1~32
33~64
65~100
101~200
Fix

Like that:

https://www.youtube.com/watch?v=-2PiaH8CO64
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Jun 2017 02:43
There's really no point in doing that, systems aren't as memory-limited as they once were when that game was created.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Kevin Picone
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 25th Jun 2017 04:26
on system that real playfields and real hardware sprites you'd need to allocate display sprites (in order) or multi-plex sprites them to build a on screen representation of each frame.. The same idea is useful today to limit the max number of pixels drawn.

PlayBASIC To HTML5/WEB - Convert PlayBASIC To Machine Code
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 25th Jun 2017 20:00
use SetSpriteDepth(sprid,#)
bigger number means the sprite is further back, lower number brings it towards the front.
life\'s one big game
spec= 2.6ghz, 1gb ram, 512mb gpu, directx 9.0c, dbpro and classic

Login to post a reply

Server time is: 2024-04-23 14:11:46
Your offset time is: 2024-04-23 14:11:46