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

#1 2011-03-11 11:37:31

Emral
New Scratcher
Registered: 2011-03-11
Posts: 5

appearing and dissapearing.

How can you make your sprites  just appear or come from the side of the screen? You can see the edge of my sprites head at the side of the stage.

Thanks if you help, I'm new here.

Offline

 

#2 2011-03-11 11:54:17

3DBlenderRender
Scratcher
Registered: 2011-03-10
Posts: 44

Re: appearing and dissapearing.

Hey, no problem, and welcome, Emral,

Making sprites appear from the side of the screen is a simple process. Drag the sprite as far as you can into the edge, then note the "X" and "Y" positions. Then, go to the "Motion" tab and find the "Go to X:_ Y:_" and simply change the X in the correct direction so as to move the sprite far to the edge of the screen. Then, write your script from there.

Hope that helped!

Cheers,
3DBlenderRender

Offline

 

#3 2011-03-11 12:11:37

Emral
New Scratcher
Registered: 2011-03-11
Posts: 5

Re: appearing and dissapearing.

Thanks  smile

Offline

 

#4 2011-03-11 16:16:13

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: appearing and dissapearing.

You can use the "show/hide" blocks.

Like:
if abs (x position) > 200
hide
else
show

This way it disappears at the edge and reappears when it comes back into view.

Abs is found in the operators section of blocks, it just makes the number always positive.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer