I am trying to make a pacman game with a pacman and a ghost but whenever I combine the codes I get told I'm mixing active and static modes and I don't know how so fix it. Please help
are you using arrays. if so there are 2 types static and you are using the wrong one. Static refers to the array variable refers to everything in the array
Answers
you have code that is outside a method.
check your {}s. ctrl-t can help.
are you using arrays. if so there are 2 types static and you are using the wrong one. Static refers to the array variable refers to everything in the array
Nothing to do with the static keyword. It's a processing thing.
You can write code without setup and draw, this is static mode.
Adding setup and draw is active mode and now all the code has to be in methods.