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
Setting depth of Sprite? #64
Comments
Actually this was easier than I thought and I added it to my pull request: |
Hey @alex-bogartz, thanks for the pull request 👍 thanks! |
Sure, but how do I do that? Can you merge and just only accept those Alex Bogartz On 4/13/2013 2:29 AM, Mat Groves wrote:
|
no worries. I'm fairly new to pulls too! I think you can cancel that pull request and then re submit the one with just the 2 files.. |
Fork the repository, create a branch, do the stuff in that branch and then submit for a pull request . |
sorted 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It would be great to have a "swap depth" feature like in Flash so you can do simple 3D transforms using the formula:
var s1= new Sprite();
var scale = focalLength / (focalLength + z);
s1.position.x = x * scale;
s1.position.y = y * scale;
s1.scale = scale;
And then sort by scale.
The text was updated successfully, but these errors were encountered: