I play with AndEngine. No documents to read, so I'm just shooting in the dark.
Finally a splash screen appeared. Now I'm trying to add some transitions to it, but no luck here. Here is the code:
@Override public void onLoadComplete() { mHandler.postDelayed(fadeAway, 2500); } protected Runnable fadeAway = new Runnable() { @Override public void run() {
It happens that postDelayed() works fine (waiting 2.5 seconds), but then everything immediately turns black. I expected that the splash screen should increase to 200%, then rotate 78 degrees, then turn off, but since everything turns black, it feels that the duration of the modifiers is not working.
Is there a clear mistake here?
EDIT : Well, I found errors: 1) Apparently, pDuration (first argument) should be in seconds, not milliseconds, like everywhere else. 2) In ScaleModifier () 1.0f, the original size is equal, so the argument is not in percent, as expected.
(There is no flame, but I am really amazed at how people managed to learn how to use this library without any documentation. There are no comments or notes in the entire source code. Have people tried and erroneously designed everything to find out how should it work? I canβt believe that the author put this huge work for this library and never provided any documents.)
source share