The WasdButtons are like the arrows in dance dance revolution, but i have them in the center of the screen.
"Note" is another class that comes down/up/across the screen, and collides with the WasdButton, at which point you hit the key it is touching to get points and remove the note.
the wasdNum is used to determine which key is which. the myWorld sets the wasdNum of each key at world generation.
But the isTouching is giving an error saying "can't find symbol - variable Note".
please help! thankyou!
public class WasdButtons extends Actor { int wasdNum; public void act() { setButtons(); if(Greenfoot.isKeyDown("w")&&wasdNum==1){ if(isTouching(Note)){ } } } public void setButtons()[h1][/h1] { this.setImage(wasdNum+"wasd.png"); } }