Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the physicalSprite added on the layer, the object already exists, but does not show #159

Open
GoogleCodeExporter opened this issue May 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.I repeat cleaning all physicalSprite objects of layer 1, and then add some 
physicalSprite objects(more than 20) some times.
2.I trace the physicalSprite objects' isOnScreen() and isVisible(),all I want 
the physicalSprite object's to be shown,which visible is true,but some objects' 
isOnScreen is false,and these objects don't show.
3.So I override the physicalSprite class, and modify the method isOnScreen like:
public class MyPhysicalSprite extends PhysicalSprite {

    public MyPhysicalSprite(float x, float y, float width, float height) {
        super(x, y, width, height);
        // TODO Auto-generated constructor stub
    }

    public boolean isOnScreen()
    {
        return true;
    }
}

and I trace those objects' isOnScreen() which is always true. but some objects 
don't show like before.

What is the expected output?
all the physicalSprite objects can be shown.

What do you see instead?
just occasionally some objects can't be shown.

What version of Rokon are you using?
the latest code from svn and generate the jar file.

On which version of Android are you experiencing this?
the latest code version.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 8 Sep 2010 at 5:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant