Hello!
I’m trying to load 15 different 3D models in P5 and make them appear at specific time.
Is there a way to load models with a “for loop” and place the models in an array? I’m a complete beginner
Here’s what I’m trying to do:
let woman_frames = [];
function preload() {
for (let i = 1; i < 15; i++) {
woman_frames[i] =
loadModel('woman_frames/'woman_framei[i].obj')
}
}
Thanks
please format code with </> button * homework policy * asking questions