Closed Stef569 closed 12 years ago
Yes, you're right. Good find, Stefan! mySpeed is obsolete imho.
No, It's a mistake :P entity.speed is the current speed. topdownactor.myspeed is the speed to apply if the actor can move.
Maybe a better name for myspeed would be moveSpeed?
The TopDownActor uses Vector2f mySpeed. Why does it not use the entity speed. An entity can only have 1 speed right?
See https://github.com/Gornova/MarteEngine/blob/master/src/it/marteEngine/actor/TopDownActor.java