Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Visual Basic Express 2010 Tutorial 38 Copy And Paste Arrays Section 1/2 - EZInvaders Part 7 Game

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,545
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 30, 2011

http://www.schoolfreeware.com
Now comes time to add more invaders to the game. This tutorial will use the copy and paste method of adding objects. Parallel arrays will be used to control the invaders. It can be tedious to watch and follow along with the programming process. The code for this video can be downloaded at SchoolFreeware.com - The finished game's code will be different than what is shown here.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (SchoolFreeware)

  • Umm...Yeah...I'm having an error. Here's the code: Dim SRight As Boolean Dim SLeft As Boolean Dim ShooterSpeed As Integer Dim ShotSpeed As Integer Dim InvaderSpeed As Integer Dim InvaderDrop As Integer Const NumOfInvaders As Integer = 10 Dim Invaders (NumOfInvaders) As Invader

     Dim IRight(NumOfInvaders) As Boolean Dim x As Integer

    For some reason it keeps telling me "Invader is not defined". What's wrong?

  • @HiryuGouki Change Dim Invaders (NumOfInvaders) As Invader so it is Dim Invaders (NumOfInvaders) As PictureBox

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • @DeathRiseProduction Umadbro? It worked great for me

  • @Andyman1117 yeah i was just about to say it

  • BECAUSE I HAD TO REPLACE EVERYHTING IT SCREW A HOLE GAME I HAD BEEN WORKING ON BECAUSE I FALLOWED YOUR LITTLE INSTRUCTIONS THAT ARENT WORTH CRAP!

  • The Invader(x) is an error

  • i noticed that instead of manually going through the code, you can press ctrl+f to open the quick replace menu.. then you can replace all of the picturebox1's with Invaders(x)'s

  • 8:00

    why dont you just see the error list---on the bottom of your vb screen

  • can u just use a for next loop for the arrays? for example 5:16

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more