|
-
May 30th, 2011, 05:50 PM
#1
Thread Starter
Member
2D game help!
Hey everyone!
I've currently working on a game 2D game in Visual Basic 2010 and I need a little bit of help.
I am currently using Pictureboxes for my graphics and user characters. I've figured out a way how to draw them smoothly and efficiently, so please don't say to use e.Graphics
Anyway, I have a random zombie spawn algorithm inside a timer, which makes zombies randomly spawn at different locations withinin the form. I was wondering how I could make an array to add new pictureboxes to the form, and make them move EX:
Code:
Picturebox(x).location = new point(picturebox(x).location.x, picturebox(x).location.y + 3)
The thing is, I would have to do,
Code:
Me.controls.add(picturebox(x))
each time I would want to create a new zombie, which doesn't work.
Thank you for taking your time to read this, I hope you can help 
(Sources, links, examples, code all helps )
Tags for this Thread
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
|