Hi all, am new to this and trying to get a hang of it.
(1) Im not xactly sure how the timer block works, i had wanted a sprite to appear at random time intervals and perform a function block (show and then moving across the screen).
(2) I needed this sprite to disappear when it has reached the edge. I tried to use a sensing block for the sprite to disappear when touching an edge but the sprite just goes into a spasm mode towards the end.
Can anyone kindly guide me on this?
thanks! ^_^
Offline
Welcome to Scratch!
For #1- There's a block you can use called "Pick Random." It's under "Operators." Timer is more like the total time the project has been running.
For #2- Maybe something like "Wait Until x= () and y )" (combo of Controll, Operator, and Motion blocks) "hide" (Looks)?
If you want, you can always check out The Scratch Wiki.
Again, welcome to Scratch
Offline
Hi both~ thanks a lot for the reply
I had previously tried "Wait until x=-260 {hide}" as well but it didnt work and i got the same issue of the sprite spasm-ing in a corner lol!
Oh well its ok thanks.. gotta try and refigure out the flow >.<
just curious though, is there a timer function lets say... i will like to create a sprite on the stage at 10 second intervals?
Thanks once again.
Offline
RabienRose wrote:
Hi both~ thanks a lot for the reply
I had previously tried "Wait until x=-260 {hide}" as well but it didnt work and i got the same issue of the sprite spasm-ing in a corner lol!
Oh well its ok thanks.. gotta try and refigure out the flow >.<
just curious though, is there a timer function lets say... i will like to create a sprite on the stage at 10 second intervals?
Thanks once again.
Yes but you can't duplicate a sprite.
Last edited by laptop97 (2011-10-18 20:10:52)
Offline
Welcome!!
Offline
Hmm for the hiding thing... maybe try when X < or > to 260?
Offline
hullo
Offline
hi how are you?
Offline
Hello again , I'm very glad your enjoying Scratch. The Scratch Community and Forums is a great place to ask questions about the forums and how things work. As for blocks, a good resource is the Scratch Wiki (I would gladly post a link but "New Scratchers" can't use BBCode ), made by and for Scratchers.
Offline
RabienRose wrote:
(1) Im not xactly sure how the timer block works
Two shay, it is pretty confusing. However, you can always right-click (Control click if you have a Mac) and click on help, and a box will show up showing you how to use it.
Basically, the timer acts as a stopwatch. It is like any variable, except it automatically goes up one second. So, let's say you were making a game where you wanted the timer to show how long a person takes to drag something to the end of the screen. The timer would be used to show that, because it automatically goes up one second.
Sorry if that sounded confusing, just tell me what you need clarified.
P.S. Welcome to Scratch
Offline
hello~! welcome to scratch!
Offline