|
-
Apr 11th, 2004, 08:48 PM
#1
Thread Starter
Lively Member
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.
-
Apr 11th, 2004, 09:06 PM
#2
Sleep mode
See if this helpful , I think there's a function for collision detection : http://www.vbforums.com/showthread.p...hreadid=257792
-
Apr 11th, 2004, 09:11 PM
#3
Thread Starter
Lively Member
-
Apr 11th, 2004, 09:15 PM
#4
Sleep mode
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 .
-
Apr 11th, 2004, 09:23 PM
#5
Thread Starter
Lively Member
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...
-
Apr 11th, 2004, 09:29 PM
#6
Sleep mode
Like this ?
VB Code:
Private Sub frmMain_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
If e.KeyData = Keys.Left Then
MessageBox.Show("you pressed left arrow")
ElseIf e.KeyData = Keys.Right Then
MessageBox.Show("you pressed right arrow")
End If
End Sub
-
Apr 11th, 2004, 09:34 PM
#7
Thread Starter
Lively Member
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$!!!
-
Apr 11th, 2004, 09:48 PM
#8
Sleep mode
Change the property named Location of the picturebox you want to move like this :
VB Code:
Me.PictureBox1.Location = New Point(50, 50)
-
Apr 11th, 2004, 09:53 PM
#9
Thread Starter
Lively Member
no like i want a timer to time each movement of it...
-
Apr 11th, 2004, 09:57 PM
#10
Sleep mode
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 .
-
Apr 11th, 2004, 09:59 PM
#11
Thread Starter
Lively Member
i dont know how to use a timer. i want it to move a location every x seconds...
-
Apr 11th, 2004, 10:21 PM
#12
Thread Starter
Lively Member
bump - 20$ to the person who can help me (paypal)
-
Apr 11th, 2004, 10:59 PM
#13
Sleep mode
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:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Timer1.Tick
Me.PictureBox1.Location = New Point(x, y)
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|