I would like to use NumPy in my project, how would I go about importing it, into construct?
EDIT: While I'm here, also is there a direct way to import an array from my pyscript into a Construct array?
[quote:1jkn8tl5]I would like to use NumPy in my project, how would I go about importing it, into construct?
Scidave has a guide how to do it:
http://www.scirra.com/forum/viewtopic.php?f=8&t=5920&hilit=python+external+libraries
Just adapt it to NumPy.
[quote:1jkn8tl5]EDIT: While I'm here, also is there a direct way to import an array from my pyscript into a Construct array?
For a one-dimensional array:
MyArray = [1,2,3,4,5,6] Array.SetSize(len(MyArray),1,1) for i in range(Array.SizeX): Array.SetAtX(i+1,MyArray[i])[/code:1jkn8tl5]
Develop games in your browser. Powerful, performant & highly capable.
Sorry, I forgot to mention it's a 2D array. (Using NumPy's "ones" function). And thank you for the guide!