|
-
May 13th, 2013, 01:31 PM
#4
Re: Falling Game
 Originally Posted by dday9
The answer to your first question is simple, check if the PictureBox.Bottom is greater than or equal to the Form's height or bottom. If it is, then set the PictureBox.Location equal to a random x and a constant y
I would actually select to have a random Y as well, a negative value so it doesn't immediately appear on screen again after its fallen down. Something like:
-rand.Next(10) * PictureBox.Height
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
|