This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

SPower presents ...



A scenario which supports adding actors to different layers.

Layers can overlap each other, and all the actors inside the layers can still continue everything they want.

Before you begin, first read the documentation in the LayerWorld, the LayerActor and the Layer class carefully. After that, it should be really easy! And if you still need an example, read the code in DemoWorld, Bee1 and Bee2.

I created a little demo, press the arrow keys to move the 2 bees. But I'm sure this is more powerful than I'm showing here. So please tell me if you're going to or haved used this!

I'd also love to hear your opinion, so please leave a comment!

2587 views / 8 in the last 7 days

Tags: demo with-source layer

This scenario is a member of: Reusable actors & support classes

open in greenfoot
Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.