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.

Bug Reports / paste sprite command - dual sprite image bug

Author
Message
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 27th Sep 2009 17:34 Edited at: 4th Oct 2009 07:47
DBP 7.4b9
Windows XP Pro SP2, 1Gig RAM, ASUS v8200 T3/200 64Meg video card
Two sprite issues:
1) using 'offset sprite' the 'sprite' command flashes old sprite image when it changes to the new offset location (use line 27, rem line 28)
2) using 'paste sprite' instead of 'sprite', two sprite images are rendered to the screen. (use line 28, rem line 27)

IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Mar 2010 14:28
Now rejected.

The issue with the offset is that you set the position variables, and then sync, but you don't reposition the sprite until the next loop, which gives the appearance of the 'flash'. If you put the SPRITE command immediately before the SYNC, it works correctly.

The PASTE SPRITE issue is also not a bug. You set the sprite at it's initial position, then never move it. You then paste the sprite every loop too but at the new position. You are basically rendering the sprite twice - DBPro still renders the original sprite even if you paste it elsewhere. If you position the sprite off-screen, then you will probably get the effect you are after.



Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 30th Mar 2010 13:39
Quote: "If you position the sprite off-screen"


Or hide it?

Login to post a reply

Server time is: 2024-04-26 08:59:36
Your offset time is: 2024-04-26 08:59:36