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

Can't make the z index order work #190

Open
ricardo opened this issue Dec 19, 2016 · 0 comments
Open

Can't make the z index order work #190

ricardo opened this issue Dec 19, 2016 · 0 comments

Comments

@ricardo
Copy link

ricardo commented Dec 19, 2016

I'm trying to change the stacking order of my sprites by setting the z property in the init function. But no matter what value I put in, it always stacks the elements in the order I add them to the stage.

Q.Sprite.extend('Test',{
	init: function(props) {
		this._super(props, {
			w: 20,
			h: 20
		});
	}
});

stage.insert(new Q.Test({ z: 2, color: 'blue' }));
stage.insert(new Q.Test({ z: 1, color: 'red' }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant