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

2013/5/14

Create labels to avoid writing repetitive code?

Entity1037 Entity1037

2013/5/14

#
I need something like like: xgrid = "-width/2+25+50*"; So then I'll be able to type "xgrid" at the beginning of an x coordinate position to avoid rewriting that entire thing multiple times. I know you can do this in lua, but I don't know how to do it in Greenfoot (Java). Could someone show me how?
danpost danpost

2013/5/15

#
You could always use the 'find-replace' feature to insert the text at the appropriate places.
Entity1037 Entity1037

2013/5/15

#
No need. I figured it all out, and my scenario finally stopped getting that error. You can check out the new and improved Megaman EX here: http://www.greenfoot.org/scenarios/8355
You need to login to post a reply.