Hello everyone, I have a few questions and some problems that I need clarifying.. Thanks for your help in advance!
1) How do you 'properly' clarify/declare an actor? At the moment I'm using something like this:
' Actor clss=getOneIntersectingObject(Clss.class); ' but I've seen a different method of doing this. I would use this for things like clss.getImage(), clss.getX/Y(), etc...
2) I am working on a game called cube cubed, and in the next update I want to be able to determine the platforms rotation inorder to set the rotation of the actor.
The problems: the method 'move(...)' uses int's; I need to use doubles and I have another problem that I think I have solved, but the problem is that one actor would have different rotations(angles). The fix would look something like this: (not tested)
I know this is probably wrong, but correct me if it is! Thanks!
Thanks for your time, and your help!
//World class:
Public World1() {
super(x,y,false/true);
addObject(new Platform(angle(e.g. 45),x,y);
}
//Platform class:
Public Platform(int angle) {
setRotation(angle);
}

