Send part of background to front?

Get help using Construct 2

Post » Sun Jan 26, 2014 1:29 pm

Hi guys,

I have a fish sprite on my title page, and a lake. I want the fish to look like it's coming out of the lake. Is there a way to bring the background to the front for a specific box area I select?

The lake is just above the bottom of the screen but not quite, so I want the area of the background under the lake to be at the front so the fish is 'invisible'.

Is this possible?

Thanks heaps!
B
5
S
1
Posts: 44
Reputation: 465

Post » Sun Jan 26, 2014 3:02 pm

I would do something like :


set fish (z order) to bottom

if fish.Y < required height then move fish (z order) to top

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Sun Jan 26, 2014 5:08 pm

So that would send the fish to the back until Y reached a specified spot? That's awesome, thanks!
B
5
S
1
Posts: 44
Reputation: 465


Return to How do I....?

Who is online

Users browsing this forum: Solomon and 10 guests