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

2023/3/23

Use a variable in all classes

gijsdevries gijsdevries

2023/3/23

#
Im making a game where you can score points when a bullet hits a monster. I also want to make a scoreboard but I cant use the variable I made for points in the scoreboard class. I already tried to make the variable public but that doesnt work. A video or an example code would be sufficient. Im kinda new to this so keep the code as simple as possible please :)
danpost danpost

2023/3/23

#
gijsdevries wrote...
Im making a game where you can score points when a bullet hits a monster. I also want to make a scoreboard but I cant use the variable I made for points in the scoreboard class. I already tried to make the variable public but that doesnt work. A video or an example code would be sufficient. Im kinda new to this so keep the code as simple as possible please :)
Please refer to my Value Display Tutorial scenario.
You need to login to post a reply.