public class Lamp extends Actor
{
int dir = 0;
/**
* Act - do whatever the Lamp wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
setRotation(90);
}
}
I've made a simple 'lamp' image and indeed it turns 90 degrees but the beam stares straight forward weirdly enough.
Recent Comments | Show All
2016/9/5
Light Beam Class Demo
2016/9/5
Light Beam Class Demo