I was following this(a video on youtube called "Game Programming: Episode 10- Clearing the Screen" by "TheChernoProject ) tutorial on how to make a game when an error occurred.
in my clear method in the screen class, it shows an error in this line;
pixels[i] = 0;
the "i" says that it cannot be resolved to a variable. why is this?
i have checked and i have the same coda as "Cherno" has in the video, but i still get this error.
--- Update ---