Hi, :). Now I can make and see one dots in the same time, how I can make and see two (or more) dots in the same time? (Code tutorial about shooting) Please help me, dudes!
PS: I Really sorry about my english, ;).
What are you talking about “dots”?
ehh… in tutorial code is named a mark. If you click mouse button then on Cube appear a red sphere (/mark/dot).
Now you understand ?
Hmmm. Ok. The tutoriall HelloPicking.java attach 1 mark geometry to the rootNode in target’s location when the player shoots, if you wanna 2 marks instead, just create another mark variable “mark2” and init your marks by using a mark creation method like :
[java]
private Geometry createMark() {
Sphere sphere = new Sphere(30, 30, 0.2f);
Geometry mark = new Geometry(“BOOM!”, sphere);
Material mark_mat = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mark_mat.setColor(“Color”, ColorRGBA.Red);
mark.setMaterial(mark_mat);
return mark;
}
[/java]
And in onAction() method attach the 2 marks to the shootable object. If you are a good java programmer you’ll know how to do that, otherwise, www.javabeginner.com xD.
Thanks man, I do this and I have now 2 marks! Really thanks dude!