do i need to load the game in order to play it?in the videos of green foot,i found that we can play games directly online in green foot. but i see no options for that.
do i need to load the game in order to play it?in the videos of green foot,i found that we can play games directly online in green foot. but i see no options for that.
It says something open with Green foot and once i click it, it starts downloading the entire game. i don't want to download it, until i at least play it once and like it.
and also i am a new user in green foot, i am fallowing tutorials in order to learn programming. in tutorials they say that i can import images/scenarios by clicking import option that is provided, after clicking set image for any class.
but its weird i don't have import scenarios option at all. So, have been choosing the scenarios that comes with the software, it's annoying sometimes. u know what i mean, please let me know.
and a last thing, how can i create series to eat enemies.
like i have to eat enemy 2 only then i can eat enemy 1, and as i eat enemy one, i win the game.
how can i code this in green foot. i am new, so be generous in explaining the answer.
Really appreciated
Regards
MikeE
Clicking the 'Set image...' option on the drop-down that appears when you right-click on class icon will give you an 'Import from file...' button to select an image from your files directory.
I do not think that 'import' is used for scenarios at all. Maybe, instead of 'scenario', you mean 'class', which is something else that can be imported.
What you need to accomplish your programming task is a field to track your progress. It can be a boolean field, maybe called 'ateEnemy2' with a default initial value of 'false' and set to 'true' when an Enemy2 object is eaten. It can be an 'int' field, maybe set to '2' to begin with and changed to one when an Enemy2 object is eaten. It can even be a reference field with the initial default value of 'null', given a reference to the Enemy2 object that is eventually eaten (if eaten). Whatever type of field you use really does not matter, as long as you can use its value for setting the conditions required. That is, if its value is still the initial value, then look for an Enemy2 object. If the value is not, look for an Enemy1 object and when eaten show a "You Win" screen and stop the running of the project.