Layout edges and growing sprites

Get help using Construct 2

Post » Sun May 12, 2013 12:55 pm

I'm new to Construct 2 and am having trouble with sprites that grow outside the layout boundaries. For my game, this should be possible - I have a circle that grows on click and it should be able to fill/outgrow the entire screen. The problem is, however, that it goes off one edge of the layout and then comes back in through the opposite side. This is a problem because the sprite is not opaque and the overlapping is obvious. Is there any way to fix this? I've looked through the events and 'Is on-screen'/'Is outside layout' seem helpful, but I don't really know where to go from there.
B
4
Posts: 10
Reputation: 220

Post » Sun May 12, 2013 1:43 pm

Could you upload a capx file, or a screen shot of your config please?
B
10
S
2
Posts: 94
Reputation: 1,536

Post » Tue May 14, 2013 10:35 am

Sure, here it is: http://ge.tt/75wZebg/v/0?c

Specifically, the problem is with the 'touchcirc' object in the 'gamemain' event sheet / 'gamescreen' layout.
B
4
Posts: 10
Reputation: 220

Post » Tue May 14, 2013 10:38 am

Here's a screenshot of the relevant part: http://i.imgur.com/9AwnJVb.png
B
4
Posts: 10
Reputation: 220

Post » Tue May 14, 2013 4:19 pm

It's not wrapping around. You have a touchcirc that already exists outside the layout so when you touch the screen you create a second one and they both grow.

You should have a condition:
'On start of layout -> Destroy touchcirc'
or give the touchcirc sprite the 'Destroy outside layout' behavior to get rid of that first one when the game starts.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Tue May 14, 2013 7:57 pm

Oh wow, thanks. I thought I had made that invisible. Much appreciated.
B
4
Posts: 10
Reputation: 220


Return to How do I....?

Who is online

Users browsing this forum: Rezzon71 and 18 guests