This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-17 20:58:07

cipo98
New Scratcher
Registered: 2011-03-23
Posts: 4

Problems with my shooter

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  tongue

Offline

 

#2 2011-05-17 20:59:42

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: Problems with my shooter

Hmm... could you upload the project? Maybe I can see what's wrong....


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

#3 2011-05-17 21:05:55

cipo98
New Scratcher
Registered: 2011-03-23
Posts: 4

Re: Problems with my shooter

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

 

#4 2011-05-17 21:16:05

cipo98
New Scratcher
Registered: 2011-03-23
Posts: 4

Re: Problems with my shooter

Here is my project I uploaded it now:

http://scratch.mit.edu/projects/cipo98/1792001

Offline

 

#5 2011-05-17 21:50:42

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: Problems with my shooter

EUREKA!! I found the problem.

See, the script you're using:

http://i1104.photobucket.com/albums/h326/scratchyoshi/blox.jpg

The glitch in it is... you can see for yourself:

http://i1104.photobucket.com/albums/h326/scratchyoshi/blox1.jpg


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

#6 2011-05-18 09:39:03

cipo98
New Scratcher
Registered: 2011-03-23
Posts: 4

Re: Problems with my shooter

I ended up swapping it to the script you showed me.. no good  sad  still the same problem. I uploaded the project again with the script you showed me, maybe you can figure it out this time.

Thanks for the response  big_smile

Offline

 

Board footer