![]() ![]() The source code seems to work well if the first "if" condition is removed. That method only exists in the CrabWorld method. ![]() But getWorld () returns an object from type greenfoot.World and in the class greenfoot.World there is no method nextLevel. In your case the reference is getWorld (). If you know how to open a new folder, create classes, and bring. A non static method call has to be connected with the object you want to call this method for (the reference). The problem is that when I click on all the objects to flip them, and click a specific object again, the chess that satisfies the movement condition will not move left, but strangely starts to move after I clicking again. Greenfoot and Java already loaded then you are ready to get started developing your game. Since someone has replied similar questions, thanks to him because I borrowed his idea while writing the following program :) I'm trying to write a chess game, basically while clicking "run button" and clicking a chess object, it will flip(face up if they were originally facing down) and be controlled by arrow keys. It allows easy development of two-dimensional graphical applications. Hello I'm a university student and I'm taking a course on programming with Greenfoot. Greenfoot is a Java interactive development environment created to help students learn. Greenfoot is a combination of a Java IDE that provides a class browser, compilation, interactive execution, single-step execution, a code editor, etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |