Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Inaccessible due to protection levels (http://www.go4expert.com/forums/inaccessible-due-protection-levels-t24759/)

P90PTS 27Jan2011 15:16

Inaccessible due to protection levels
 
Hey,

I'm currently doing some work on a program i'm creating for Uni, now i'm getting the above error on the following line of code:

if ((position.X < boundary.Width - 50) && (counter == 0))

All the variables are set to Public. The error is within an 'Alien' class but the error message says this: ".enemy.counter is inaccessible due to protection levels"

I have embolded where Visual Basic 2008 is locating the error. I can upload more code if required.

Any help would be really appreciated!!!

Cheers

P


All times are GMT +5.5. The time now is 05:10.