I am trying to make a shooter for an assignment and I keep getting extremely frustrated because something is wrong with my battledroid. I set him up to move a certain amount of steps forever if hes not touching my clone troopers laser. If he is touching the laser I put him to stop the script but it glitches and randomly switches costumes. Please help Ima nub
Offline
Hmm... could you upload the project? Maybe I can see what's wrong....
Offline
This My script for when he dies:
<when green flag clicked>
<show>
<forever>
<if><touching[ Clone Trooper Laser ]
<switch to costume[ Walk1 ]
<show>
<forever>
<if><touching[ Clone Trooper Laser ]
<switch to costume[ Bdie1 ]
<repeat( 11 )
<next costume>
<wait( 0.1 )secsc>
<end>
<wait( 3 )secsc>
<hide>
<end>
<end>
<end>
<end>
THis is his walking script:
<when green flag clicked><switch to costume[ Bwalk1 ]
<forever>
<if><< <not> >><touching[ Clone Trooper Laser ]
<switch to costume[ Bwalk1 ]
<repeat( 7 )
<next costume>
<wait( 0.05 )secsc>
<change x by( -1 )
<else>
<stop script>
<end>
<end>
Offline
EUREKA!! I found the problem.
See, the script you're using:
The glitch in it is... you can see for yourself:
Offline