I am making a tower defense game for my intro to programming class, and i have code that uses the move and turn methods to get to the end of the track, but it skips directly to the end of the track.
Here is the code for the for loop,
and here is the code for the pathing that i need
I am very new to programming, so any help would be awesome
public class TEST_CODE extends basic_medspeed
{
/**
* this is the pathing app, write a code for "hits"
*/
public void act()
{
//pathing work make it move slowly
setLocation(38, 2);
for (int i = 0;i < 90; i++);
{move(1);
Greenfoot.delay(1);}
}
}
public class basic_medspeed extends Actor
{
/**
* this is the pathing app, write a code for "hits"
*/
public void act()
{
//pathing work make it move slowly
setLocation(38, 2);
turn(90);
move(15);
turn(90);
move(20);
turn(-90);
move(30);
turn(-90);
move(47);
turn(-90);
move(38);
turn(90);
move(20);
turn(90);
move(18);
turn(-90);
move(10);
}
}



