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 Mayhem

Author
Message
FireFog
17
Years of Service
User Offline
Joined: 5th Jan 2007
Location: France
Posted: 8th Aug 2008 20:39
Hi there,
I'm doing a very simple program : a quizz.
I'm using a background menu image with load image/past image and sprites for selected or unselected answers.
But the fact to use sprites leave me a blue screens with only the sprites

Can anyone help me ?
Thanks in advance,
FireFog.
Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 8th Aug 2008 21:50
or just use cls

Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 9th Aug 2008 21:38 Edited at: 9th Aug 2008 21:42
Quote: "CLS won't help."

it may help with somethings like the text if he's planning on using the print command or sprites(not paste sprites)which will stop them from leaving a trail behind(unless you want it as a effect)
[edit] opps just using sync doesn't leave a trail behind

FireFog
17
Years of Service
User Offline
Joined: 5th Jan 2007
Location: France
Posted: 10th Aug 2008 12:08
Thanks guys for your answers I'll it
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 10th Aug 2008 17:42
you need to put the paste the background sprite bit inside the main loop.



Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 11th Aug 2008 23:32 Edited at: 12th Aug 2008 06:17
Quote: "But that wasn't his question at all. He got a blue background, which means that the 3D mode was activated"

Cls can also be used as a way to remove that back ground although it's a bit slow. to see what I mean use this

and for me backdrop off still leaves me with a blue screen(DBP version 1.069)


FireFog
17
Years of Service
User Offline
Joined: 5th Jan 2007
Location: France
Posted: 14th Aug 2008 20:49
Thanks for your replies.

I'm sorry for being so noob, but whatever I try, the problem is still there


Here is the guilty code :


The code is functionally working : I can move the answer selecter, but the image in the "paste image 2,0,0" is not displayed properly because of the 3D background thing.

Thanks in advance
FireFog.
Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 14th Aug 2008 21:48
your missing a sync on at the begging of the code and sync at the end of your loop and if backdrop off doesn't try putting a cls after sync

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Aug 2008 11:25
the "paste image 2,0,0" has to be in the do loop each time its looped or it will not be seen.

so it will be



and so on... this will keep image 2 on the screen.

Dark Physics makes any hot drink go cold.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 15th Aug 2008 13:19
Isn't that what I said?

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Aug 2008 16:05
@=PRoF=

Ah! Yes, you did, I didn't look to see what was in the box, opps, I know if had I would not have posted.

Dark Physics makes any hot drink go cold.
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 15th Aug 2008 17:49
@Howdo
No worries, I was just feeling a little overlooked is all

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@

Login to post a reply

Server time is: 2024-09-27 18:26:18
Your offset time is: 2024-09-27 18:26:18