Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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?
Develop games in your browser. Powerful, performant & highly capable.
[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:
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]
for i in range(Array.SizeX):
Sorry, I forgot to mention it's a 2D array. (Using NumPy's "ones" function). And thank you for the guide!