I am trying to use any sort of code on an item that is yet to be created but cannot figure out how.
Creating the item works of course, but as, when I’m coding, it does not exist yet, I cannot seem to make it available for coding. Any ideas of how to make it work?
I could of course make it invisible as a workaround, but I’m looking for a proper solution.
On my end, this appears to work correctly. Perhaps you have a more complex setup that contains a mistake that makes yours fail.
I’ve taken a look at your CoSpace but you don’t have any sample trials, just your original code before you began trying things out. Unfortunately that means I can’t inspect it for any mistakes you could have made there when you tried to set things up.
No I got it, thanks a lot!!
I can only add items from the create item drop down, right?
One of my students wanted to make a coin appear in a person’s hand after you have solved a riddle, so that would not work I guess
Of course, it’s completely up to you how you want to do it.
I assumed you wished to create objects dynamically in which case cloning would be a great option there.
If you feel like CoBlocks are beginning to limit you, remember that variables can hold almost anything, unlike Scratch. You can even put scene items, lists of scene items, colours, and positions into variables. This can be very useful when you begin dealing with more complex setups.