Computer Science Canada

double buffering =|

Author:  TheHobbit [ Mon Jan 05, 2009 8:45 pm ]
Post subject:  double buffering =|

hey guys, back again with that dumb game of mine !

game's going pretty swell so far - except for the dumb flickering, im sure you all know what i'm talkin about.

repaint makes that little flicker that kinda kills the game.

i know to use the double buffering method with all the dbg and copying to variable to paste it back on the screen stuff, and i already used it. the problem lies here, that my game has mouse events , and invoking the double buffer disables all my mouse functions, which kinda kills the point of the game !


i know tihs might be too wide a problem , but is there a way around it ?

thanks in advance Smile


p.s i've looked on the site for double buffers and stuff, but haven't found much ( the fact that searching "double buffering" returns about 1033 results doesnt help ! )
so if you know a post with a problem like mine, LINK ME ! thanks !

Author:  HellblazerX [ Mon Jan 05, 2009 11:15 pm ]
Post subject:  Re: double buffering =|

How is the double buffering preventing your mouse functions from working? Your drawing methods and input methods should be kept separate, so one shouldn't be affecting the other.

Author:  TheHobbit [ Tue Jan 06, 2009 2:39 pm ]
Post subject:  Re: double buffering =|

lmao, thats exactly what im wondering, coz it makes no sense. all my game logic is in the run method ( my teacher said run method or its lack thereof, might have to do with it ) , but it still doesn't work !

i'll post the code up here later on - d/w you dont have to read through it all ( its not that long right nowanywyas ) - just see if any of you guys can isolate the problem !


: