top of page

Value Display Tutorial

DISPLAYING OF A VALUE
 

This tutorial will show, in a step-by-step progression, from simple to elaborate, how a value can be displayed.  The value could be one of many types; however, the 'int' value is the one most commonly displayed.  The basic procedures for displaying the rendered image is discussed first; this includes both drawing the image onto the world background and setting the image to a basic Actor object.  Then, extending the Actor class to create specialized objects is discussed.  To finish up, the rendering of images that represent the value in ways that do not require text content is discussed.

​

Displaying an image in greenfoot


Creating an image with text


Using a basic Actor object


Building a Text actor class


Building a Counter actor class


Non-textual representations of a value

bottom of page