How do I turn a graph into JSON for a Array?

Get help using Construct 2

Post » Mon May 26, 2014 12:53 pm

I basically need a complex 2D graph that has nice curves and irregular bumps to be loaded as an Array.
This will be then used to animate sound.

I guess the graph could be an image file or a spreadsheet type file, no sure how to do this so please help me Obiwan Kenobi, you're my only hope lol
B
34
S
5
G
1
Posts: 78
Reputation: 3,397

Post » Mon May 26, 2014 1:06 pm

My next question is can i interpolate between array values with Lerp or some other method?
B
34
S
5
G
1
Posts: 78
Reputation: 3,397

Post » Wed May 28, 2014 2:11 am

bump bump bump lol
B
34
S
5
G
1
Posts: 78
Reputation: 3,397

Post » Wed May 28, 2014 10:57 am

To read the graph, I have no clue.

To interpolate the values of the array, you could draw lines between each point using a lerp to find the coordinate of each of them, you could also try to do a modelisation of course, but this will implies maths that I don t quite remember
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Fri May 30, 2014 3:25 am

Thanks Aprodite, I figured it all out myself, not sure I can explain it easily though, but I successfully used Arrays with smooth Interpolation between values without using Lerp, but now that i think about it I could replace it to Lerp just to simplify the way the extra long math formula looks
B
34
S
5
G
1
Posts: 78
Reputation: 3,397


Return to How do I....?

Who is online

Users browsing this forum: wenwen11212016 and 7 guests