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 //
.......................................
<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
How about you use the
[blocks] <glide( )secs to x )y
[/blocks] block. Steps are just changing the x and y position based on the direction.
Last edited by ImagineIt (2011-10-23 09:28:03)
Offline
Use
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!
Offline
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
Offline
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.
Offline