Discuss Scratch

Fededebedede
Scratcher
5 posts

LIVE DEPTH LAYERING

hullo, I'm looking to figure out how to make a layering system that functions LIVE within a project, a 2.5d project where objects can move in front of or behind one another automatically. At least so its compatible with this https://scratch.mit.edu/projects/546332608/ . I've tinkered with lists, sorting algorithms, etc., but I can't figure it out ): is there any solution?
amongshash
Scratcher
24 posts

LIVE DEPTH LAYERING

this is my first post so I don't know but use this!
go to front
or
go back (...) layers
MasterofTheBrick
Scratcher
1000+ posts

LIVE DEPTH LAYERING

Is there a specific pattern or can the objects switch layers randomly?
Fededebedede
Scratcher
5 posts

LIVE DEPTH LAYERING

MasterofTheBrick wrote:

Is there a specific pattern or can the objects switch layers randomly?
The project as it is has no defined layering, its just the order the clones were created at the moment. The goal is to have it so the ones farther up will be farther behind in layering, and ones lower farther in front.
Oumuamua
Scratcher
1000+ posts

LIVE DEPTH LAYERING

Fededebedede
Scratcher
5 posts

LIVE DEPTH LAYERING

Oumuamua wrote:

I tried, is it working?

https://scratch.mit.edu/projects/546831363/
Whoa, appears to be working perfectly! Major kudos!!! Way more elegant solution than anything I could find.
Oumuamua
Scratcher
1000+ posts

LIVE DEPTH LAYERING

Fededebedede wrote:

Oumuamua wrote:

I tried, is it working?

https://scratch.mit.edu/projects/546831363/
Whoa, appears to be working perfectly! Major kudos!!! Way more elegant solution than anything I could find.

TYSM for your nice piropos(I had to google what major kudo means)
I'm glad if it helped you. Greetings.

Powered by DjangoBB