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

2012/10/18

Really basic question...

SimpleJack SimpleJack

2012/10/18

#
I Have two actors, Hero and CPU Hero has an int variable called HeroHP and the CPU actor has one called CPUHP, how can I read the CPUHP data in the hero class?
SPower SPower

2012/10/18

#
Well, you first need an object of the CPU and then you can access it.
SimpleJack SimpleJack

2012/10/18

#
how does one go about doing that? and will the data be lost when traveling to a different world?
You need to login to post a reply.