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

Setting depth of Sprite? #64

Closed
alex-bogartz opened this issue Apr 9, 2013 · 7 comments
Closed

Setting depth of Sprite? #64

alex-bogartz opened this issue Apr 9, 2013 · 7 comments

Comments

@alex-bogartz
Copy link

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.

@alex-bogartz
Copy link
Author

Actually this was easier than I thought and I added it to my pull request:

#63

@GoodBoyDigital
Copy link
Member

Hey @alex-bogartz, thanks for the pull request 👍
Just what the doctor ordered! If ya could modify the pull so that only the movieclip and displayObjectContainer files are included that would be ace and I will do a merge.

thanks!

@alex-bogartz
Copy link
Author

Sure, but how do I do that? Can you merge and just only accept those
files or is there an easier way? Sorry, new to pull requests.

Alex Bogartz
E-mail: alex.bogartz.dev@gmail.com
Skype: alex.bogartz
Ph: (503) 452-2414

On 4/13/2013 2:29 AM, Mat Groves wrote:

Hey @alex-bogartz https://github.com/alex-bogartz, thanks for the
pull request 👍
Just what the doctor ordered! If ya could modify the pull so that only
the movieclip and displayObjectContainer files are included that would
be ace and I will do a merge.

thanks!


Reply to this email directly or view it on GitHub
#64 (comment).

@GoodBoyDigital
Copy link
Member

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..

@uanjoze
Copy link

uanjoze commented Apr 13, 2013

Fork the repository, create a branch, do the stuff in that branch and then submit for a pull request .

@GoodBoyDigital
Copy link
Member

sorted 👍

@lock
Copy link

lock bot commented Feb 27, 2019

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.

@lock lock bot locked and limited conversation to collaborators Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants