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.
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.
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.
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.