Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get\Put troubles
#31
It waits for the Vertical Synchronization (vertical retrace) of your screen, so you dont get "tearing" of the image on your screen, if you place it at a strategical point in your code.

And asking questions is not bad, it's good Smile
(Gives me work :lolSmile
Reply
#32
Yeah, it's good to ask questions. It brings back lotsa memories for me. Wink
Reply
#33
well your welcome for asking questions
Reply
#34
Use a spell check.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#35
We should add RTFF to our RTFM replies Big Grin

The Almighty FAQ is awesome! http://faq.qbasicnews.com/

On the topic:

http://faq.qbasicnews.com/?blast=Plottin...enThirteen
http://faq.qbasicnews.com/?blast=SetVide...enThirteen
http://faq.qbasicnews.com/?blast=DoubleBufferingGeneral
http://faq.qbasicnews.com/?blast=VerticalRetraceGeneral

http://faq.qbasicnews.com/?blast=SuperPu...enThirteen
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#36
ok, well thnx guys, and girls of any, uve been a real help, glad there are still ppl who dont get anoyed by noobs
Reply
#37
We need them for the cauldron recipes.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#38
lol, well anyway as i said in this r anotehr topic, i found a way to keep the background, i just put the sprite bak on the same place then place it in the new position, no flicker and works, also when i put the sprite over a place with colored places tha the color isnt 0, the colors become demented, can u help me
Reply
#39
Sounds like you want to do some masking. You'll need to create two sprites for everything you want to mask.

The first sprite is the mask. All of the colored areas in your sprite should be drawn as white in the mask. The rest should just be black. If I'm not mistaken, for screen 13 in QB, you need to use 255 for the black part of the mask, and 31 for the white.


[Image: Mask.jpg]

Then you have the sprite...

[Image: Sprite.jpg]

Store them both in an array using...
Code:
GET()-(),Aray()


Then, to do the actual masking, you need to put the mask first using AND, then put the actual sprite using OR.

Like this...

Code:
Put(0,0),MaskArr(0),And
Put(0,0),SpritArr(0),OR

This will draw over the pixels without distorting the sprite, but it will erase the background underneath the colored areas in the sprite. Sorry, but if you want to see the background, you still have to redraw it, no matter what.

It's been a while, so anyone please fix it if I've done something wrong. :lol:

EDIT: Damn, I think I just went over something that has already been explained...again! :roll:
Reply
#40
im too laxy to check 1st page so its ok that u posted a alrdy explained thing if it was, thanks for the masking bit, good ill change all the PSET colors to white and mfill the rest with the black, il try after school today
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)