Results 1 to 8 of 8

Thread: Need help for Dance, Dance Revolution type game

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    4

    Need help for Dance, Dance Revolution type game

    So I need to make a game for my visual basic class (high school level) and I don't know much code really but I wanted to make a game with scrolling arrows and the player would have to push the corresponding key at a certain time. Would this be too complicated? Any help would be greatly appreciated.

  2. #2
    Android OpenGL ES Guru Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,278

    Re: Need help for Dance, Dance Revolution type game

    Actually it wouldn't be complicated. But is there anything in particular to a DDR clone that you need help with? I've worked on one in the past myself.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    4

    Re: Need help for Dance, Dance Revolution type game

    I'm not sure how to make the scoring system give points when a key is hit once the arrow scrolls into the box. (does that make sense?) Thanks.

  4. #4
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Need help for Dance, Dance Revolution type game

    ok basically you just set up arrays for the scores, also set up variables for the arrow possitions, when the arrow is moving up and a key is pressed, ask the program the Y value to see if it is in range, if it is.. add a point to the score array.

    I would have the arrows in an array as well.
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  5. #5
    Hyperactive Member capsulecorpjx's Avatar
    Join Date
    May 2005
    Location
    Renton, WA
    Posts
    288

    Re: Need help for Dance, Dance Revolution type game

    Quote Originally Posted by brandnew
    I'm not sure how to make the scoring system give points when a key is hit once the arrow scrolls into the box. (does that make sense?) Thanks.
    Hmm you'll need Form_KeyUp, Form_KeyDown
    A set of Arrow Gifs (transparent pref), and Box Gifs (targets).
    A timer that will move the Arrows up gradually toward the Box Gifs.

    Everytime the user hits a keydown, check if the current location of the foward-most arrow(s) is close to the location of the Target Box. Depending on how close he is, you can determine the score.

    For example a miss happens when an arrow passes through the box without the right key being pressed.

    Oh yea, and some funky music (don't know what control plays mp3's) and a good rave background.
    "I like to run on treadmills, because at least I know I'm getting nowhere."
    - Me

  6. #6
    Android OpenGL ES Guru Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,278

    Re: Need help for Dance, Dance Revolution type game

    Your scrolling is gonna also have to be real time to go along with a certain bpm (beats per minute.) What helped me set that up is have some horizontal lines evenly parted, like maybe a few hundred, which will hit a main line. 60 bpm would mean those lines would hit that line every second. 120 bpm would hit it every half second. The problem is that you'd be asking yourself "how do I have movement based on beats per minute? How fast should it go?" Well I found a little formula on my own that's very accurate:

    VB Code:
    1. Public Function BPM_To_Speed(ByVal BPM As Single, ByVal Arrow_Height As Single) As Single
    2.  
    3.     BPM_To_Speed = BPM * Arrow_Height / 60
    4.  
    5. End Function

    Where Arrow height is the size of your arrows, or how evenly apart they are. It'll return the exact speed you need. You would also need your scrolling to be time based (also known as time based movement.)

  7. #7

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    4

    Re: Need help for Dance, Dance Revolution type game

    if anyone has any examples of this kind of game, i could sure use some help looking at some more code examples.

  8. #8
    Android OpenGL ES Guru Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,278

    Re: Need help for Dance, Dance Revolution type game

    This should help get you started:

    DDR BPM.zip

    And although unfinished, I also have this, with the arrow graphics from the actual DDR game:
    Attached Files Attached Files

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