Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Screen Flicker

Author
Message
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 15th Jul 2010 21:32
I am making a simple battle system for my 2d game and I'm having trouble with the screen flickering when I press a button. Any help who'd be good.

Project attached.

Attachments

Login to view attachments
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 15th Jul 2010 21:42
I think you're gunna have to attach code there, it'll be something to do with, when you click, you've got some sort of flag not to perform the function again while it's held, but you need to keep drawing it.

Rawwrr. Sig Fail.
Newcastle is awesome
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 15th Jul 2010 22:31
sorry about that wrong zip file.



I've attached the media.

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 16th Jul 2010 19:15
You are using the backdrop, so you don't need to use cls in your main loop. Take it out, and it should be without the flicker.

So many games to code.......so little time.
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 16th Jul 2010 22:01
Thanks for that bit of knowledge.

Login to post a reply

Server time is: 2024-09-28 20:23:53
Your offset time is: 2024-09-28 20:23:53