hi,
I've done a project a few month ago and now I update to JME 0.1 and tried to start it. After fixing some problems (changed Constructor in FirstPersonHandler, no MouseInput.get() anymore…) there is only one problem left. My Text looks like a white box instead of letters on transparency. I really don't know what change is reliable for that, so can you help me? I've post my code below.
public class HUD extends Node{
private Text lookAtText;
public HUD(GameLogic gl){ //public class GameLogic extends BaseGame
super("HUD");
lookAtText = new Text("lookAtText", "Hier");
init(gl);
}
private void init(GameLogic gl){
this.detachAllChildren();
this.attachChild(lookAtText);
}
public void setLookAt(String lookAt){
lookAtText.print(lookAt);
}
public String getLookAt(){
return lookAtText.getText().toString();
}
public void update(Camera cam, String lookAt){
setLookAt(lookAt);
}
}