Heres my game:)
Hi! It looks like there is only a 0.01% chance that the variable “mySprite” gets turned into a sprite! Because of this, there is a 99.99% chance that “mySprite” is never turned into a sprite. Because of this, later in the code when you make “mySprite” do anything, the program doesn’t know that “mySprite” is a sprite (because it isn’t) and it throws an error, because you can’t make something that’s not a sprite do sprite things!
A simple fix would be to only do sprite things to “mySprite” if “mySprite” got turned into a sprite at the start.
Though this would fix the problem, I don’t think that’s what you want. Looking at the code, it appears that you wanted to add a 0.01% chance that the “egg” was made as an easter egg. That’s really cool!! To do this, you would have to switch the two blocks of code so that the 0.01% chance block leads to the egg instead of the player, and put the player into the “else” section.
Just keep in mind that, with this new code, if the Easter egg does happen, “mySprite” will never become a sprite, and the code would error when the Easter egg happened. That’s definitely not what you want!!
What I would do is take the “set (mySprite) sprite…” part out of the Easter egg bit and place it at the very top of the On Start block, so that it becomes a sprite no matter what, and nothing errors.
PS. Your egg code also won’t work correctly because you tell the program to move “egg” with buttons before you actually create the “egg”, which will cause an error. You can fix this by moving the “move…” block under the “set (egg) to sprite…” block!