Below are two classes, which just move to the right. They don´t move simultaneously though, but rather move one, wait until the other one has moved and then move again. Is there a way to have them both move at once? I have heard there´s something called hyperthreading, which enables this. Is that true and if it is how do I implement it?
First class:
Second class:
import greenfoot.*; public class First extends Actor { public void act() { move(5); Greenfoot.delay(1); } }
import greenfoot.*; public class Second extends Actor { public void act() { move(5); Greenfoot.delay(1); } }