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

2014/9/7

Is it possible to make a text based game on greenfoot?

Jakslater96 Jakslater96

2014/9/7

#
Im looking to make a simple game where the player is given scenarios and they must click (or press certain buttons) to determine an action each action has a consequence etc a game like survivor z
K_wow K_wow

2014/9/7

#
It sure is. You can create new actors for the "buttons" and use getImage().drawString() to draw text onto the actors. You can then use Greenfoot.mousePressed() or Greenfoot.mouseClicked() to check if the mouse has pressed or clicked the actor.
Jakslater96 Jakslater96

2014/9/7

#
Okay thanks so i can have the mouse on screen to click the different buttons? Do you know of any scenario or pre made game to help me get started?
K_wow K_wow

2014/9/7

#
You just have to have the mouse in the world for Greenfoot to detect it. I'm afraid I don't know of any scenarios to get you started, sorry.
Jakslater96 Jakslater96

2014/9/7

#
Okay thankyou ill start from scratch
You need to login to post a reply.