|
-
Aug 17th, 2009, 07:23 PM
#1
Thread Starter
Member
Collision Detection
Hmm, I don't know where to start here. This is my code for a moving button:
If e.KeyCode = Keys.W Then
Button1.Top = Button1.Top - 10
ElseIf e.KeyCode = Keys.S Then
Button1.Top = Button1.Top + 10
ElseIf e.KeyCode = Keys.A Then
Button1.Left = Button1.Left - 10
ElseIf e.KeyCode = Keys.D Then
Button1.Left = Button1.Left + 10
How would I use the intersects/bounds thing a
nd where would I put it? Would it go here?
If e.KeyCode = Keys.W Then
--here
Button1.Top = Button1.Top - 10
People have told me the commands but I don't know how to use them...
Any help on collision detection would help :P
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
|