Discuss Scratch

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

PhiPhenomenon wrote:

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

marezsutek wrote:

PhiPhenomenon wrote:

Could you send the current problematic code?

Also, I editted it to where it runs it until the HP reaches 0
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?
marezsutek
Scratcher
13 posts

Enemy Attack problem

PhiPhenomenon wrote:

marezsutek wrote:

PhiPhenomenon wrote:

Could you send the current problematic code?

Also, I editted it to where it runs it until the HP reaches 0
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?

SpideyPlaysMC
Scratcher
500+ posts

Enemy Attack problem

marezsutek wrote:


Wow. You definitely shouldn't use the
<(Current Enemy HP) = [0]>
block. Use something like
<(Current Enemy HP) < [1]>

Powered by DjangoBB