https://studio.code.org/projects/gamelab/EJ3OYzYgJfu018lQ_3YeA7QuVqHBpzqHfGzxdTuhCKo/
I’m trying to make an OS-like program.
To open the program, swipe up and enter “3333” (Press “3” 4 times.)
Here’s what’s going wrong:
On line 441, I’m setting the animation of the sprite app1icon to screens[currentScreen][0].iconscreens[currentScreen][0].icon
. If you console.log this value, you will recieve “calculator icon” which is an actual animation.
(It looks blank, but it isn’t, it’s just that all of the pixels are white.)
I don’t understand why the sprite is still grey (it’s shapeColor). It’s supposed to be drawing the sprite’s animation, that I set using app1icon.setAnimation(screens[currentScreen][0].icon)
I tried doing app1icon.setAnimation(“calculator icon”) directly, and it still didn’t work.