Hey!
I'm abit off a n00b with Visual Basic!
So I have create a Maze Game for a project in college, I have a player and a trap, both the trap and player move, but they both flash!
I read it's possible to double duffer them so they don't flash.
Does anyone have the code/method of doing this?
Thank's!
Bioshox!
Image Double Buffering!
Started by Bioshox, Feb 04 2010 12:46 PM
3 replies to this topic
#1
Posted 04 February 2010 - 12:46 PM
|
|
|
#2
Posted 04 February 2010 - 10:30 PM
This is C# code but it may help you
// use double buffer to minimize flickering. SetStyle(ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.DoubleBuffer, true);I hope this helps heres the link to the site I got this from Detecting arrow key input (keypresses) - C# - Forums at ProgrammersHeaven.com.:)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#3
Posted 04 February 2010 - 11:38 PM
#4
Posted 05 February 2010 - 07:30 AM
Ya I know but C# it kinda close to VB anyway hope your using .NET because here's two links for double buffering in VB.NET.:)
VB Helper: HowTo: Draw a rubberband rectangle with and without double buffering in VB .NET Double buffering Windows Forms
VB Helper: HowTo: Draw a rubberband rectangle with and without double buffering in VB .NET Double buffering Windows Forms
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.


Sign In
Create Account


Back to top









