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 1,mx,my,1-does this work?

Author
Message
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 15th Jun 2008 14:17

i use this part of a code to create a sprite from previously loaded image.TDK shows a good way in his tut to use sprites for buttons.I like that method.Only one but:did i write the code correct?i mean even when i dont put it in a loop,i cant see any black dot (the image is 1x1 png) on the screen.ideas?

books->movies->games
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 15th Jun 2008 14:56
make sure that the color of the sprite is NOT 0,0,0. Because that is the default color that sprites take for transpacey.
and you could write that code as



This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 15th Jun 2008 15:21
Yup,transparency...for the variable,was wrong in the snippet.
Thanx.

books->movies->games
best seclub
16
Years of Service
User Offline
Joined: 22nd May 2008
Location:
Posted: 15th Jun 2008 17:52
OK,just wanted to say the whole code works now.Thanks,guys.

books->movies->games

Login to post a reply

Server time is: 2024-09-27 16:33:46
Your offset time is: 2024-09-27 16:33:46