|
-
May 13th, 2013, 02:31 PM
#17
Fanatic Member
Re: Falling Game
if you are familiar with classes and even if not, this would be a perfect opportunity to learn.
turn your pictureboxes into objects with falling speed, position, and picture properties with a contructor
just something simple like
class box
private FSpeed as single
private PosX as long
private PosY as Long
public sub New()
'for speed use 3+ a random number between 0 and 5 say
posy = top of course
posX = random numberbetween Left and width
end sub
create some functions to get the fspeed, posx,y inside the class
then you can create a list of boxes
public boxes as new list(of box)
then with every tick event if theres less then 10 in the list add a new one
boxes.add and it will calculate everything for you
then just handle the movement using the functions in the class
Yes!!!
Working from home is so much better than working in an office...
Nothing can beat the combined stress of getting your work done on time whilst
1. one toddler keeps pressing your AVR's power button
2. one baby keeps crying for milk
3. one child keeps running in and out of the house screaming and shouting
4. one wife keeps nagging you to stop playing on the pc and do some real work.. house chores
5. working at 1 O'clock in the morning because nobody is awake at that time
6. being grossly underpaid for all your hard work

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
|