Author | Message |
---|---|
dgonz
Posts: 16
|
Posted 19:06 Nov 22, 2016 |
anyone figure out how to get the Fool to move around? |
jhurley
Posts: 207
|
Posted 20:09 Nov 22, 2016 |
Hint: attach the event handler to the MazeGUIPane |
dgonz
Posts: 16
|
Posted 21:01 Nov 22, 2016 |
Which EventType are we supposed to use for the addEventHandler? Whenever i try passing a KeyCode or KeyEvent into the addEventHandler's argument I get an error saying Int is not an applicable argument.
"The method addEventHandler(EventType<T>, EventHandler<? super T>) in the type Node is not applicable for the arguments (int, new EventHandler<Event>(){})" |
epascua
Posts: 47
|
Posted 08:43 Nov 23, 2016 |
Use the KeyCode.LEFT/RIGHT/TOP/UP Enum in an if statement and in that if statement change the CSS accordingly. This will all be in an event handler. |