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.

Dark GDK / Multiple sprites of the same image

Years of Service
User Offline
Joined: 24th Jun 2013
Posted: 25th Jun 2013 23:47
Probably a noob question, but couldn't find the answer for it.
How do I display the same sprite (I mean the same ID of a sprite) multiple times on the screen? I am trying to make a clone of Doodle Jump just to get used to DarkGDK. I am able to put one plank on which my character can jump on, but not a second one of the same sprite.
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 27th Jun 2013 22:45 Edited at: 27th Jun 2013 22:47
You usually create more sprites that use the same image.
For example:
dbSprite(1, 0, 0, 1);
sbSprite(2, 100, 100, 1);
will create two sprites, one at (0, 0) and one at (100, 100). Both will use the same image (1).
You can also use dbPasteSprite, or for that matter dbPasteImage.

The last two exist in DBP but I'm unsure whether they are in DGDK1 under those names. They probably are though.

"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2023-11-29 20:49:01
Your offset time is: 2023-11-29 20:49:01