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 / Sprites don't draw?

Author
Message
Da_Rhyno
13
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 27th Sep 2011 19:39
Hi guys, I am working on a map editor, and for some reason none of my sprites will draw. I've tried different things to no avail.

Here's the code:



And attached is the background image. Any help would be appreciated vastly.

Thanks!

Attachments

Login to view attachments
Da_Rhyno
13
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 27th Sep 2011 22:20
Nvm... I fixed it.

It didn't like the "CLS" along with "DRAW SPRITES FIRST", which would cover everything INCLUDING the sprites
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Sep 2011 23:34 Edited at: 27th Sep 2011 23:34
BTW, your Get_free_sprite function is coded incorrectly - it checks against images, not sprites.

Da_Rhyno
13
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 27th Sep 2011 23:47
Thank you for pointing that out! You just saved me from a lot of trouble in the future!

The story behind that is I copied the function over and changed the name, and I forgot to change the command internally. xD

Login to post a reply

Server time is: 2024-11-24 01:33:48
Your offset time is: 2024-11-24 01:33:48