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

2020/11/18

World or actors not showing on screen

Stemtree Stemtree

2020/11/18

#
I am having trouble with the world or actor not showing up on screen when I create them . I have windows 10. I have the newest version of Greenfoot. What am I doing wrong
danpost danpost

2020/11/18

#
Stemtree wrote...
I am having trouble with the world or actor not showing up on screen when I create them . I have windows 10. I have the newest version of Greenfoot. What am I doing wrong
Cannot help with no code to fix. Show your MyWorld class codes (entire page).
Stemtree Stemtree

2020/11/18

#
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class qw here. * * @author (your name) * @version (a version number or a date) */ public class qw extends World { /** * Constructor for objects of class qw. * */ public qw() { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. super(600, 400, 1); } }
Stemtree Stemtree

2020/11/18

#
background or actors not showing . just started greenfoot
Super_Hippo Super_Hippo

2020/11/18

#
Did you already create a World object (in this case a “qw” object)? If not, right click on the “qw” class and select “New qw()” (or similar).
danpost danpost

2020/11/18

#
Background should be full white. No actors are coded to be added to the world.
Stemtree wrote...
actor not showing up on screen when I create them
What classes do you currently have other than World and Actor? How are you attempting to create an actor?
You need to login to post a reply.