Added: 3 years ago
From: Bncplix
Views: 4,085
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (13)

Sign In or Sign Up now to post a comment!
  • Change the Default Setting on the main form 'DoubleBuffered' to true, that wil reduce the flickering :]

  • nice flashing with those squares... maybe try to draw them into a buffer first and then show in form

  • Ok first of all, epic fail with the drawing method, but im not goint to be an average troll, heres some help: 'Create a picture box on ur form (300 x 300) and a timer set interval 1 - 20, u decide and enabled = true Imports System.Drawing.Imaging Public Class Form1 Dim output As New Bitmap(300, 300) Dim e As Graphics = Graphics.FromImage(output) Sub drawScreen() handles Timer1.tick picturebox1.image = output End Sub End Class Work out the movement by your self. But IMAGE = QUICKER THAN FORM!
  • Yeah I could have double bufferd it by drawing to a seperate image then drawing that on, it is much faster, and i use that method in Java.

    This was coded well over a year ago, since then i have learned a whole lot more and yes i do know my method was bad, there are much better ways like you said.

    Havent touched VB for probably a 10 months or so now, mainly now its just PHP, Java and sometimes C#

  • wouldn't it help if for every one object you drew, two came out, but one is invisible, the invisible one moves a bit lower than the other one, becomes visible then the other one goes invisible. Repeat

  • No, just use my method /\, and then draw a clear square over it then draw object slightly lower down

    'Clears ur screen

    e.FillRectangle(Brushes.White, 0, 0, 300, 300)

    msg me for more help...ive had alot of practice with GDI

  • Not to mention the video delay of the recorder

  • @Bncplix seems pretty good for the movement speed of your mouse and the numbers above

  • ummm... very slow!!!

    i create a 2D phisic engine (only square object) in vb net with collision and a special "portal" like the game half life 2: Portal and it go much fast !!!

  • Ipersonality, using multiple controls limits how many I can draw. Each will have to have their own code. And it will probably still blink. Sometime in the summer if I have time I will seee if I can fix it

  • You can create that dynamically way, so the blinking would go away! Not by drawing, but dynamically, with code!

  • umm i am making it all dynamically through code, check out the source which can be found on the site in the link on the siebar

    i probably can fix it now that i know how to double buffer in java but i just dont have time

  • I'm sorry, I supposed to say that why to draw them, when you can copy new controls...

  • Actually, another way is to remove the ones that have already hit the ground all together from the initial move and check array

  • try to set

    AutoRedraw = True

  • Thanks but that was already tried

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more