I’m not good at coding. So I’m learning. I’m a teacher. I was impressed with the project of an outpost 31 by Google group. So I’m trying, but it’s too hard. His project is as follows :
I want to do exactly the same. So, I want to try pixel art. Below is my exercise project.
First, the code is as follows.
Now, I have green buttons, but I want to make each color button, and when I press the button, I can get cuboid, and then I can move it from Dragzone1. How shall I do it? Once the green button is pressed, no ‘ cuboid ’ is generated. What’s the problem?!
It may seem funny to people who are good at coding, but I’ve been trying to do this for a few months and it’s really hard. Please give me some help.