How to APPLY the exact drawn "objects" to other scenes?

Get help using Construct 2

Post » Thu Jun 11, 2015 4:04 pm

Again, got stuck on some coding and I need some help. :roll:

As you can see, the problem is the 'ketchup spilling'.
The ketchup pattern is randomly drawn, using Create Objects function.

Image Image

How do I apply the same exact pattern into other scenes like the pic on the right?
Image ImageImage
B
62
S
26
G
9
Posts: 183
Reputation: 9,086

Post » Thu Jun 11, 2015 5:13 pm

Cant you just make a ketchup sprite with that exact pattern and layer it over the.. um stuff?

Or does it need to be dynamically generated?
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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Thu Jun 11, 2015 9:01 pm

If each "dot" of ketchup is an object, you'll need to record (probably to an array) each object's data (position, size, angle, etc.), and then use that data to recreate the pattern of objects as needed. It gets trickier if the pattern needs to be redrawn at different scales or angles. If so, you'll need to calculate each objects relative position/size/angle when redrawing.

If the objects are only being used for visual purposes, you would probably have a much easier time using the paster plugin to create and copy the ketchup pattern.
B
64
S
19
G
8
Posts: 341
Reputation: 12,195

Post » Fri Jun 12, 2015 12:47 am

Thanks for the info @zatyka !
Regardless of the plugin you recommend, I thought there will be an easier solution.

Something like: creating dots inside a group/family, and other identical groups create the same dot placements instantly, I wonder if this idea works on C2.

First, I'll try the Paster plugin to see if it works.
Image ImageImage
B
62
S
26
G
9
Posts: 183
Reputation: 9,086


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests