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

#1 2010-02-18 19:38:53

RyoTIu
Scratcher
Registered: 2010-02-18
Posts: 1

moving without glide

Hi there!
So i need to make a sprite move  to a battle ship and when it hit the ship it goes back to it original place by dissappearing. but also when it touches another sprite i will dissappear and come back to do the motion again is there a way to not use glide

plz its for a info tech hw

Offline

 

#2 2010-02-18 19:54:33

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

Re: moving without glide

The battle ship should have a script like this:

[blocks]<when green flag clicked>
<forever>
<wait until><< <touching[ sprite (a bullet, I suppose) <or> <touching[ any other sprites >>
<hide> --Optional
<wait( # )secsc> --Optional
<show> --Optional
<go to x sad  ## )y sad  ##
<end>
[/blocks]


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

Offline

 

#3 2010-02-18 22:23:31

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: moving without glide

You could use the move _ steps block, or the change X/Y by _ blocks to move without glide...


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2010-02-19 10:58:45

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: moving without glide

You could use <point towards(  )> and <move(  )steps>

Like:
<point towards( ship )>
<repeat until> <touching[ ship ]>
<move( 3 )steps>
<end>


Hope this helps.  smile

Last edited by MathWizz (2010-02-19 11:02:05)


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

Board footer