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

2019/6/28

please help me with my code i cant proced in my gamewithout it

1
2
Coltz Coltz

2019/6/28

#
import greenfoot.*;
 
/**
 * Write a description of class BlueDot here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class BlueDot extends Timer
{
    /**
     * Act - do whatever the BlueDot wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        Move();
        Timer();
    }    
     
    public void Move()
    {
        move(10);
    }
     
    public void Timer()
    {
        if(getX() == 599) 
        {
            Greenfoot.setWorld(new Test2());
        }
    }
}
Reversatile Reversatile

2019/6/28

#
Ahhhhh, you have not added Code Reversatile to your script, you must feel bad now LOL xD!
Coltz Coltz

2019/6/28

#
do you know how to fix it
blidgebron blidgebron

2019/6/28

#
use code reversatile in the end and it will fix
Coltz Coltz

2019/6/28

#
i did that and it didnt work
YeetDevelopers YeetDevelopers

2019/6/28

#
Alt F4 might help.
blidgebron blidgebron

2019/6/28

#
ok try this at the beggining
public void useCodeReversatile()
{
if(Greenfoot.isKeyDown("N") && ("G") && ("G") && ("A") )
{ 
Greenfoot.youHaveGay(69 == 420)
}
Coltz Coltz

2019/6/28

#
when i did alt f4 it just shut my greenfoot game
Coltz Coltz

2019/6/28

#
and the code i got given didnt work either
blidgebron blidgebron

2019/6/28

#
waht are you trying to do?
Coltz Coltz

2019/6/28

#
im trying to make it like a timer so that when it reaches the end a different world comes on
Coltz Coltz

2019/6/28

#
blidgebron wrote...
waht are you trying to do?
please help me though
Coltz Coltz

2019/6/28

#
so thhese a start screen and when you click start it says level 1 then i want it to switch to thhe level world
Coltz Coltz

2019/6/28

#
so i have the bluedot to move at speed 10 and when it hits 599 because my world is 600 pixels long it will switch to the level world and that is acting like a timer
Coltz Coltz

2019/6/28

#
@danpost
There are more replies on the next page.
1
2