Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Enemy Attack problem
- marezsutek
-
Scratcher
13 posts
Enemy Attack problem
I am trying to make an enemy move to a random position on screen, but when I go to run the script it only stays in place, stuck on the forever loop I put there. If anyone has a solution or idea as to what the problem is it would be greatly appreciated if you could tell me.
- PhiPhenomenon
-
Scratcher
500+ posts
Enemy Attack problem
Could you send the current problematic code?
- marezsutek
-
Scratcher
13 posts
Enemy Attack problem
Could you send the current problematic code?

Also, I editted it to where it runs it until the HP reaches 0
Last edited by marezsutek (June 15, 2023 00:43:16)
- PhiPhenomenon
-
Scratcher
500+ posts
Enemy Attack problem
I don't see any issues with the battle loop. Could you send screenshots of all relevant bits of code, such as the Start AI broadcast?Could you send the current problematic code?
Also, I editted it to where it runs it until the HP reaches 0
- marezsutek
-
Scratcher
13 posts
Enemy Attack problem
I don't see any issues with the battle loop. Could you send screenshots of all relevant bits of code, such as the Start AI broadcast?Could you send the current problematic code?
Also, I editted it to where it runs it until the HP reaches 0


- SpideyPlaysMC
-
Scratcher
500+ posts
Enemy Attack problem
Wow. You definitely shouldn't use the
<(Current Enemy HP) = [0]>block. Use something like
<(Current Enemy HP) < [1]>
- Discussion Forums
- » Help with Scripts
-
» Enemy Attack problem