Spread Value

New releases and general discussions.

Post » Sat Sep 27, 2008 9:59 am

A feature that is useful with alterable values in MMF is the 'spread value' feature, where each value is assigned a unique ID.
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Sep 27, 2008 10:47 am

What do you need Spread Value for, if you don't mind me asking?

I'm just curious, because I rather thought using Spread Value for instance picking in MMF was a pain.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Sep 27, 2008 11:07 am

My alternative methods to spread value seem to always cause a crash :cry:
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Sep 27, 2008 11:54 am

[quote="alspal":29bc9g25]I'm making some obscure 3D effect using 'slices' and I need each one to have a value that is one higher than the other.[/quote:29bc9g25]

Oh, you mean like those cool little flash toys where a face is made of different layers and each layer moves independently? That would be a cool effect.

Edit:
Nice ninja edit :wink:
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Sep 27, 2008 12:11 pm

Yeah its great fun! :D
http://www.mediafire.com/?jnqmnbtztyz

It takes for ever animating each slice though :cry:

I can obviously get Link to work fine, its just when it comes to giving perspective to each slice for walls and such that a spread would be useful.
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Sat Sep 27, 2008 1:47 pm

I think construct has an improved technique to replace spreading values, but i don't really know what it is atm. Its probably UID's (each object has a unique ID).

Can someone who knows confirm?
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Sat Sep 27, 2008 2:28 pm

There is practically no need to spread values in Construct. The 'For Each' system condition makes it redundant. However, if one of your alternative methods is crashing, you should report it as a bug so it can be fixed and you can use the correct method. You should report bugs instead of trying to work around them!

You could simulate a spread value by using a For Each - but that kind of defeats the point.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest