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

2012/1/15

How to edit a variable of another class

Oneshot Oneshot

2012/1/15

#
Hey, does anyone know, how to read / edit the variable of another class? As Example: A method in world has to read the variable in the class Player. Best Regards
Duta Duta

2012/1/15

#
See part of my answer to http://www.greenfoot.org/topics/745
davmac davmac

2012/1/15

#
There's also a tutorial on this topic, which is part of the documentation.
Duta Duta

2012/1/15

#
:L I didn't know that, having never read the documentation myself... looks useful though
You need to login to post a reply.