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 / Finding the right sprite? [DBP]

Author
Message
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 14th Nov 2006 18:00
If i have 1 sprite, which im pasting twice, how can i identify if its one or two? i really dont have some code to show, cause i cant even think out how to do it..
H4ck1d
18
Years of Service
User Offline
Joined: 27th Dec 2005
Location: Yes
Posted: 14th Nov 2006 19:15
Pasting a sprite will only draw a copy of the sprite onto the screen, it does not create a new sprite, merely draws one, so sprite 1 is still your only sprite. If you want to create another sprite, try clone sprite or make sprite commands. Hope that helps!

-H4ck1d

Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 15th Nov 2006 02:22
Oh, and if you create a sprite at say, x2000 and y2000, and paste it at x200 y200, why wont sprite x() recognise the pasted location? its kinda weird, since i believe calling the sprite command instead of the paste sprite command will slow the program down...
D Ogre
20
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 15th Nov 2006 02:37 Edited at: 15th Nov 2006 02:44
The functions concerning sprites are only going to return values for the actual
sprite(s) not the pasted version. As stated by H4ck1d, pasting a sprite only stamps a
image copy to the screen. Think of the sprite as being a inked rubber stamp and the
screen as a piece of paper when using the PASTE SPRITE command.

DBPro uses 3D hardware acceleration for sprites unlike DBC.
Wartorn
18
Years of Service
User Offline
Joined: 24th Oct 2006
Location: Molde, Norway
Posted: 15th Nov 2006 21:27
Allright.. thanks both of you!

Login to post a reply

Server time is: 2024-11-14 01:20:27
Your offset time is: 2024-11-14 01:20:27