Results 1 to 40 of 366

Thread: Flickering Buttons: How Do I Get Rid Of Them?

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2008
    Location
    St. John's, Newfoundland, Canada
    Posts
    965

    Re: Flickering Buttons: How Do I Get Rid Of Them?

    So timers are considered redundant in this case, correct?

    And I will use just one form for the game. I planned on doing this in recent weeks.

    Breaking up the sound to smaller files would be a good alternative, like for the speech of Bob Eubanks, I could split the longer audio files to smaller clips, and maybe I can even consolidate two smaller audio clips to play at once.

    But is there a way to code it properly so that "tokens" are unnecessary?

    And I can put most of the main code into the "Form_Load" part of the form?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Flickering Buttons: How Do I Get Rid Of Them?

    As I mentioned in one of my earlier posts, timers have their uses but the way you were using the sound files caused you to have a lot of code in the timers (as a matter of fact the whole game revolved around the timer code) and that's not a good idea. If you break up the sound file into task-oriented pieces you won't need the timers at all. What I mean by "task-oriented" is breaking it up so that you have separate sound files that are played only when specific buttons are clicked or when specific things happen in the game. Put another way, each sound file should have just one purpose.

    Your tokens were only a way to tell where you were in the audio and with small task-oriented, clips you won't need them at all.

    You should actually put as little code as you can in Form_Load. The reason for that is that the more code you have there the longer it takes for the form to be seen. Don't worry too much about that though since there are things we can do to fix that. The main thing is to build the app around the one sound file, one task principle.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width