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 / Sprite trail?

Author
Message
CSL
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: USA
Posted: 29th Mar 2009 18:40
Please look at this piece of code:



If I remove the hide sprite instruction above, the program leaves a copy of the image on the upper left corner (I'm using a Windowed display 800x600). Notice the x,y coordinates on the sprite command: Is 0,0 off the visible screen?
I thought the default behavior of sprites was not to leave a trail.

I guess my real question is: Is there a better way of doing what I intend to do without having to use a hide sprite instruction?

Please be gentle, I'm a noob to DBPro

CSL

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 29th Mar 2009 19:22
yeah, remove the hide sprite line and change your paste sprite line to sprite 1, mousex(), mousey(), 1

CSL
15
Years of Service
User Offline
Joined: 22nd Mar 2009
Location: USA
Posted: 29th Mar 2009 20:50
That was easy Thanks!

CSL

Login to post a reply

Server time is: 2024-09-28 04:19:02
Your offset time is: 2024-09-28 04:19:02