Hello everyone, I’m trying to make a Tamagotchi with the micro bit. But I have a problem: I want that the micro bit is automatically hungry so I have set a variable hungry and it counts automatically. But if I set the block the whole time look happy then he looks the whole time happy (ok, logical) but I want that if he is a little bit hungry that he only looks sad but now he looks take turns sad and happy.
Can someone help me?
Thanks in advance.
Anne-Marie
Here’s a link to my project;)
Hello! I think because the happy face is in the “forever block” it overrides the sad face. The solution I would go for is putting the happy face in “on start” and then after the face changes, adding a wait block and then a happy face. Also the “if” statements could be condensed into an if-else. Here, I think I fixed it
https://makecode.microbit.org/_Vf3KyDLWwK8q
Hey, Can you make one of these on the arcade? I’m really interested in this topic (yes, I know this died like, 3 years ago, just so you know, yeah, I’m talking to you specifically)
1 Like