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 / PasteSprite Bug

Author
Message
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 5th Jan 2012 03:28 Edited at: 5th Jan 2012 03:33
Alright so i came up with my map system which appears to work fine. But there is one problem, the very last tile of my map also appears as the first tile of my map. I cant figure out why at all. Any ideas?

Hopefully i have included all relevant code. There is three total layers but i have only included one. The rest look exactly the same.



Here is the map file


So basically that 5 at the end is appearing correctly but then also appearing on tile 1 replacing the 2 tile.






Here is all my code. Probably irrelevant but if it helps.



Entire map file


Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Jan 2012 12:54
well youve got a five at the end there?

the character looks cool, curious to know more about your project

Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 5th Jan 2012 17:40
Yea i know that. But it should only be showing up at the bottom corner not the top one as well.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 5th Jan 2012 20:31
If you use dbPasteSprite, you should hide the original sprites. Number 3 is hidden but the other three are not, so they can show up on the screen. I would guess that what you see there is the last animated sprite at default (zero) coordinates, and the other two unhidden sprites are probably directly below it. Try to use dbHideSprite on all the animated sprites the same way as for number 3, and remove the dbSprite(1,0,0,1); command too which does not seem to be necessary. Does that help?
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 6th Jan 2012 08:33 Edited at: 6th Jan 2012 08:35
That is great advice but it did not seem to make a difference. Truly at a loss here any other advice would be greatly appreciated.

Also the tile is no longer the same as the final tile. It is just a random tile now.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 6th Jan 2012 17:48
Isn't it tile 55? You paste three layers of sprites on top of each other and in the entire map file there is a 55 value at the start of the third data section.
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 7th Jan 2012 00:04
Aha! all fixed now. Thanks a ton.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size

Login to post a reply

Server time is: 2024-11-19 04:37:41
Your offset time is: 2024-11-19 04:37:41