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

#1 2009-06-04 13:38:42

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

not working right

basically, i'm telling a projectile to stop moving if it hits something. it dosent, what it will do though is move about 10 steps then stop. the EXACT code im using is
when q pressed
go to guy
swich to costume 1
point towards mouse pointer
====================
=repeat 99999999999999 times (if i use forever it runs the next code at the same time)
=if touching right wall (Sprite) or left wall or roof or ground or block
=swich to costume 2
=stop script
=else
=move 30 steps (or the guy shoots himself)
=show
=move (any number dose the same thing) steps
====================

help please

Offline

 

#2 2009-06-08 13:15:07

Mitch99
Scratcher
Registered: 2009-05-15
Posts: 51

Re: not working right

ok, it's been three days!!!!!!!! someone answer!!!!

Offline

 

#3 2009-06-08 13:52:02

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: not working right

This might fix it... Not sure though because I didn't understand your post well.

when q pressed
go to guy
swich to costume 1
point towards mouse pointer
=if touching right wall (Sprite) or left wall or roof or ground or block
=swich to costume 2
=stop script
=else
=move 30 steps (or the guy shoots himself)
=show
====================
=repeat 99999999999999 times (you might want "repeat until <touching [whatever]>")
=move (any number dose the same thing) steps
====================


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

Board footer