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

#1 2011-10-23 09:20:29

damirAERO
New Scratcher
Registered: 2011-10-23
Posts: 5

Newbie ! Need help

Hello to all. I started using Scratch just for free time recreation and i made one animation. Now i have a problem with it. I want that a character goes towards another character by sliding. I made it to go but it just apear over the character when i give him a command. I want that it slide to it, not to teleport on it :DDDD. I learned all major functions but even a help screen didn't helped me with this  hmm //

.......................................

<when[  ]key pressed>
<point towards(
<move(  )steps>
<stop all>

.........................................

another example

<when[  ]key pressed>
<point towards(
<forever><move(  )steps><stop all>

This is what i tryed but without solution

Offline

 

#2 2011-10-23 09:26:27

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Newbie ! Need help

How about you use the
[blocks] <glide(   )secs to x sad    )y sad   [/blocks] block. Steps are just changing the x and y position based on the direction.  wink

Last edited by ImagineIt (2011-10-23 09:28:03)

Offline

 

#3 2011-10-23 09:39:31

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: Newbie ! Need help

Use
http://i.imgur.com/UwqJJ.gif

Replace the 3 with how many seconds you want the sprite to take to glide to the other sprite, and choose the sprite name in the dropdown.

Hope that helps!


IHeartGaming

Offline

 

#4 2011-10-23 10:50:15

efisher82
Scratcher
Registered: 2009-12-07
Posts: 100+

Re: Newbie ! Need help

Or you can use [blocks]<repeat until<touching that sprite><point towards(that sprite)><move(1)steps>[/blocks]

(I know the blocks are messed up)

Last edited by efisher82 (2011-10-23 10:52:02)


http://bit.ly/ApaYt4http://ow.ly/8Jemvhttp://fulltwist.net/wp-content/plugins/social-slider/icons/standard/youtube-32.png

Offline

 

#5 2011-10-23 15:29:04

iTweak0r
Scratcher
Registered: 2011-07-30
Posts: 100+

Re: Newbie ! Need help

damirAERO wrote:

another example

[blocks]<when[  ]key pressed>
<point towards(
<forever>
<move(  )steps>
<stop all>[/blocks]

This is what i tryed but without solution

Don't put the stop all in there


Make it in Scratch! because it's cooler when it's made in scratch
http://i.imgur.com/D4iqPHR.png

Offline

 

#6 2011-10-24 06:08:59

damirAERO
New Scratcher
Registered: 2011-10-23
Posts: 5

Re: Newbie ! Need help

I tryed many options from above and the one with steps does work for me but only if im keeping pressing the command button. I have tryed with "forever" option but no  result

Offline

 

#7 2011-10-24 10:16:40

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Newbie ! Need help

damirAERO wrote:

I tryed many options from above and the one with steps does work for me but only if im keeping pressing the command button. I have tryed with "forever" option but no  result

Upload the work you've done so far. That way people can take a look at your scripts and see where the problem is.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer