blit()ing issue
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Nexys

Alright, I've fiddled around with VC enough in the past to know the basics, but it seems I've missed something this time around.
I recently started coding an intro screen with a title image that sort of slides/fades in from the side -- that works.
The issue is that as the image moves, it leaves a trail behind it. I looked into it and discovered that each blit() is somehow a permanent addition to the screen, rather than needing to be put into a while() loop. Is my computer/code smoking crack again? How do I change this so I can just have a nice clean movement?
Also, another, somewhat related issue: since updatecontrols() is apparently now integrated with showpage(), is there a way I can draw the screen without allowing for input? Any help would be great.
Thanks.

Posted on 2004-06-05 16:36:15

RageCage

ok, to get rid of the trail you want to do
rectFill(0,0,windowGetWidth(screen), windowGetHeight(screen), 0, screen);
and that'll fill the screen with black before the image blit. You will always need to refresh the screen some how. when your viewing in map graphics all you need is a render().

as for doing something without allowing for input... uhh, if you dont ask for input you wont get it =p
if youre refering to something like entities moving, youneed to use the setEntitiesPaused(I think thats the name, you might wanna check that). If you have some kind of input for another reason you should have a 1/0 variable that tells if you are asking for input or not.

good luck! ^_^

Posted on 2004-06-05 16:55:32

Nexys

Alrighty... I'll start heading in that direction. Thanks!

Posted on 2004-06-05 17:20:40

blues_zodiakos

If you want a quick screen clear, try this -


void CLS()
{
RectFill(0,0, Imagewidth(screen), Imageheight(screen), 0, screen);
}


:D

Posted on 2004-06-05 18:11:53

mcgrue

Just to throw in my two cents, whenever I'm doing all the drawing to a screen in a renderloop (menus, titlesequence, manga cel plot-point spectacular, etc...) I pretty much have that exact same RectFill line at the top of my loop.

The only time you wouldn't want to lay down a colored rectangle as the background is when you've got an image you're blitting as the background instead. At any rate, I believe Toen's used the motion blur in effects before. Could be wrong, though.

Posted on 2004-06-06 05:30:52

geronimo

Camajatta: In review, you want to cover up the unwanted data somehow with correct [current] data.

Posted on 2004-06-06 11:53:09


Displaying 1-6 of 6 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.