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

Report as inappropriate.

M0N57R0517Y
M0N57R0517Y presents ...

2017/2/11

Simple Adventure Game

This is an adventure game I am working on. I was having some trouble with it, and hoping to get some help from folks in the forum. As soon as my forum post is approved, I will link it here. bThanks!

2481 views / 26 in the last 7 days

Tags: game with-source

open in greenfoot
Your browser does not support the canvas tag.
valdesvaldes

2017/2/11

It doesn't do anything. checking your MyWorld code, you didn't add any actors in the world. The line should be like this: addObject(new CodeMonkey(), 120, 140); checking your CodeMonkey code, it works fine, but has one problem. you set the image in the act method, so you are putting the same image over and over again. Create a constructor for your class public CodeMonkey() { setImage("CodeMonkey.png"); } or simply set the image using the right button in the class, and then use menu option "Set image..."
Nosson1459Nosson1459

2017/2/12

you might want to update your version of Greenfoot
M0N57R0517YM0N57R0517Y

2017/2/12

@nosson me? I'm pretty sure I'm on the most recent version.
Nosson1459Nosson1459

2017/2/12

I have 3.0.4 and its not the latest
M0N57R0517YM0N57R0517Y

2017/2/12

I just updated to 3.1.0. It might have fixed other issues, but it didn't fix the particular issue I'm having, which I talked about here: http://www.greenfoot.org/topics/58243/0#bottom Any thoughts on that?

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.