This site requires JavaScript, please enable it in your browser!
Greenfoot back
qwe
qwe wrote ...

2019/1/6

creating a lives counter in greenfoot

qwe qwe

2019/1/6

#
It is my first time programming and I am trying to use greenfoot. Im makinga game where the main car cannot let any other cars pass by it. It will shoot grenades at the other cars and the score will increase by 1 for each hit car. I am trying to implement a life system where for each car that manages to pass by and reach one side of the screen, a life will be lost. I have added the life objects onto the screen but have no idea as to how to implement the code?
danpost danpost

2019/1/6

#
qwe wrote...
It is my first time programming and I am trying to use greenfoot. Im makinga game where the main car cannot let any other cars pass by it. It will shoot grenades at the other cars and the score will increase by 1 for each hit car. I am trying to implement a life system where for each car that manages to pass by and reach one side of the screen, a life will be lost. I have added the life objects onto the screen but have no idea as to how to implement the code?
My Value Display Tutorial scenario should be able to help you out. It even discusses a life counter (as a non-textual value display object).
You need to login to post a reply.