FindClass / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

PhysicalSprite animate #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.PhysicalSprite sprite = new PhysicalSprite(x, y, width, height);
2.sprite.setTextureTile(texture, 0);
3.add(1, sprite);
4.sprite.createDynamicBox();
5.sprite.animate(0, 3, 300);

What is the expected output?
an animate physical sprite on the screen

What do you see instead?
black screen

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
android 1.5, both in emulator and device

Please provide any additional information below.
comment sprite.animate(0, 3, 300); Then it works! But when i create a physical 
sprite and call animate function, the game breaks!Nothing show on the screen 
and no exception output in Logcat, so I can't find what's wrong.

Original issue reported on code.google.com by rayjun...@gmail.com on 11 Aug 2010 at 3:07

GoogleCodeExporter commented 9 years ago
I saw Issue 140:  Animation cannot be started in Scene constructor, it's the 
same as my bug, as hakan said: "It really doesn't change anything if I start 
the animation in the scene's constructor or in onReady()"

I try to put my code in onReady function, it really doesn't work either, black 
screen and it seems my game doesn't crash, no exception output and my bg music 
is still playing.

Original comment by rayjun...@gmail.com on 18 Aug 2010 at 1:23

GoogleCodeExporter commented 9 years ago
I'm animating physical sprites without problems using your code ..

Original comment by rtaylor205@gmail.com on 4 Sep 2010 at 3:20

GoogleCodeExporter commented 9 years ago
do you call animate in onReady() function? And you must confirm that launch the 
game, the first Scene to call animate in its onReady function

Original comment by rayjun...@gmail.com on 10 Sep 2010 at 5:49