I've been working on a project for my Computer Science class. It's a 2-D Shoot-em-up Platformer. I've been blasting through it easily, coding up a storm... until I hit the Monster Generator. I've been trying multiple ideas, but to no avail, and the my friend (coding a Tower Defense in VB Express 2010) shows me his game and he's got monsters spawning from one side and walking to the other, following his path.
I've got my array started but I can't get my monsters to spawn.
The code that I have right now for my array is...
Dim i As Integer = 19 Dim Bats(i) As PictureBox Dim Slime(i) As PictureBox
and in my spawning timer
For Me.i = 1 To 1 Bats(i).Location = New Point(12, 500) Bats(i).Size = New Size(50, 50) Bats(i).BackgroundImage = My.Resources.Bat Slime(i).Location = New Point(666, 415) Slime(i).Size = New Size(50, 25) Slime(i).BackgroundImage = My.Resources.slime Next i
I'm fairly new to coding but I know what I'm doing (well... sort of). I just want to get past this little speed bump. I have 8 days to finish this and this is the only part I've had trouble with.
I get the feeling that one of you are going to look at what I have and your eye will twitch, but I'm trying my hardest and all I want it to do is make mobs come from both the left and the right. Thanks in advance and I'm looking forward to a response. If you guys need anymore code -for reasons I cannot fathom... but that's just me-, I'll be more than happy to supply it.
I realize I posted this in the wrong Forum. I apologize in advance.