Results 1 to 13 of 13

Thread: so many problems... so little time...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91

    so many problems... so little time...

    I need 2 make a game BY TOMORROW. its going to be a dodge the falling objects game. if ANYONE can help me with this, im the screen name PLEASE!!!!!!!!!!!!!!!!!!!

    Problems:
    1.) create objects that fall down screen @ different speeds adn start @ random locations.
    2.) check if your character hits an object
    3.) have 8 different levels... 1st levels= slower falls, less objects, 8th lvl=faster falls, more objects...
    4.) create a win screen adn check if your done with the last level.

    PLEASE HELP!!!
    Last edited by Synth3t1c; Dec 19th, 2008 at 08:05 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    See if this helpful , I think there's a function for collision detection : http://www.vbforums.com/showthread.p...hreadid=257792

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    downlaod is down

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    So basically , tell your teacher you can't do that by tomorrow because you really can't do this kind of game in a day .

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    ive got a bit done, heres one problem that you might know how to do offhand - i want a constant check if left or right arrow is pushed. if left is pushed, it does action a, if right is pushed,, it does action b...

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Like this ?
    VB Code:
    1. Private Sub frmMain_KeyUp(ByVal sender As Object, ByVal e As
    2. System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
    3.  
    4.         If e.KeyData = Keys.Left Then
    5.             MessageBox.Show("you pressed left arrow")
    6.         ElseIf e.KeyData = Keys.Right Then
    7.             MessageBox.Show("you pressed right arrow")
    8.         End If
    9.     End Sub

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    thats awesome pirate! the last thing i need now is to make objects fall from one pic box to another below it. i thought of a way to do the collision thing, so yea... please help me on that and i will paypal you sum 20$!!!

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Change the property named Location of the picturebox you want to move like this :
    VB Code:
    1. Me.PictureBox1.Location = New Point(50, 50)

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    no like i want a timer to time each movement of it...

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Synth3t1c
    no like i want a timer to time each movement of it...
    Ok , you still need to move them by changing the location of the picturebox .

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    i dont know how to use a timer. i want it to move a location every x seconds...

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    bump - 20$ to the person who can help me (paypal)

  13. #13
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Synth3t1c
    i dont know how to use a timer. i want it to move a location every x seconds...
    Paste a timer control on your form , set Interval property to 1000 (1 second for example) , then doubleclick on the timer component , you'll get this event handler :

    VB Code:
    1. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e
    2. As System.EventArgs) Handles Timer1.Tick
    3.         Me.PictureBox1.Location = New Point(x, y)
    4.     End Sub

    This moves the picturebox every 1 second .

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