Tagged Questions
1
vote
1answer
73 views
Can't call method out of a timer. Why? [closed]
I have another problem i can't solve by myselve.
My situation:
I have four FrameLayouts in LinearLayouts.
I color them, set Layout hight and width at wrap content and just change the minwidth to ...
4
votes
4answers
256 views
Playing a death anim on an enemy that I want to remove
I've been trying to find a tutorial on how to best make animations in Android. I already have some animations for my enemies and my character that are controlled by rectangles and changing ...
4
votes
1answer
228 views
Android Java: Way to effectively pause system time while debugging?
In my project, I call nanoTime and use that to get a deltaTime which I pass to my entities and animations.
However, while debugging (for example, stepping through my code), the system time on my ...
3
votes
1answer
302 views
android game performance regarding timers
Im new to the game-dev world and I have a tendancy to over-simplify my code, and sometimes this costs me alot fo memory.
Im using a custom TimerTask that looks like this:
public class Task ...
5
votes
3answers
818 views
Thread runs faster on a faster processor… how to control Thread speed
I have a thread that uses TimeUnit.MILLISECONDS.sleep(5);
Problem is when I load my app on a faster phone say with a snapdragon, it runs at lightning speed.
Is there a way to control this speed so ...