I have a student who is trying to code her dragon to be in attack crouch until it is clicked 3 times, when it lies down. This is what we have and it is not working. We’ve tried putting the if condition inside a forever command as well with no luck. We’ve also tried removing the forever from change click by 1 blocks. There is no other code tab / conflicting animation blocks. Any thoughts to make this work? Thanks!
Edit: nvm i found out how to upload code
There is a very simple fix. You see, when you run that code its stuck on the “forever” line and cant go to the next line. To fix it, get a “run separately” coblocks and put the forever code into that run separately. Basically what happens is it makes the code run separately to the other code, so it can do both things. (You could also do run parallel but you have to put whatever you want under forever in the run parallel. Which can be annoying)
It will look something like this:
|set variable “click” to 0|
|Run separately|
|—> |Forever|
|When “dragon” clicked:
change variable “click by 1”|
then the animation here (do not put the animations in the run separately otherwise it wont work)
idk how to upload code so it might be a little confusing. But all it is, is the run separately under your variable, and then the forever (and the code in it) inside the run separately code, and your animations below and outside of the run separately code. It should work, hope this helps!


