Arranging objects with X pixel Overlaps??

Get help using Construct 2

Post » Wed Jun 29, 2016 8:55 am

Hi guys.

I'm trying to create a Layered Cake-type game and I'm trying to randomly spawn different thickness layers and have them arranged allowing about 5 pixel-wide overlaps.

See not all the layers are rectangular. The "Icing" layers have sinusoidal edges. :?:
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Thu Jun 30, 2016 5:45 pm

Can you separate the icing edges from the icing thickness?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Fri Jul 01, 2016 8:49 am

gumshoe2029 wrote:Can you separate the icing edges from the icing thickness?


I can do that as a workaround but I'd rather not because of memory usage. We're talking about generating a new randomized set of of "cake" and "icing" layers every 8-10 seconds.
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Fri Jul 01, 2016 9:01 am

Is the 9-patch plugin an option ? (besides that you can not use it in familys)

https://www.scirra.com/manual/151/9-patch
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Jul 01, 2016 9:33 am

99Instances2Go wrote:Is the 9-patch plugin an option ? (besides that you can not use it in familys)

https://www.scirra.com/manual/151/9-patch


Haven't thought about that but since you say I can't use it in families then probably not. All cake and icing layers are in the same family.
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Fri Jul 01, 2016 11:30 am

I meant, you can not use it in families containg others types of objects.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: MathNook and 29 guests