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

#26 2009-09-24 08:01:09

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Ask me anything

Whats the meaning of scratch, life, and everything?


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#27 2009-09-24 08:02:14

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Ask me anything

Louis2018 wrote:

How do you get popular?

Make good projects, comment on other people's projects, and post a lot in the forums.

tcb wrote:

Whats the meaning of scratch, life, and everything?

42

Offline

 

#28 2009-10-10 16:21:53

Staraptor
Scratcher
Registered: 2008-07-29
Posts: 1000+

Re: Ask me anything

I need my ball to bounce in pong!


"Life is a video game. No matter how good you get, you always end up getting zapped." -Shiregu Miamoto

Offline

 

#29 2009-10-10 19:35:25

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

Re: Ask me anything

how can i make one dot stay there where was previously clicked
i am making something like: when you in windows xp (for example) hold left click on desktop and you drag there is a square, or something similar, which, when gets over an icon, make icon turn blue
i hope you understand what i am speaking about  smile
please answer quickly  big_smile

Last edited by dusski (2009-10-10 19:41:31)


dusski

Offline

 

#30 2009-10-10 20:01:44

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Ask me anything

Ok, you need these variables (Not including the parentheses):
(click x)
(click y)
(multiselect on)
And these sprites:
pen
icon

Code:

Pen script:

[when flag clicked]
[set [multiselect on] to [0]]
[forever]
[][wait until <mouse down?>]
[][set [multiselect on] to [1]]
[][set [click x] to (mouse x)]
[][set [click y] to (mouse y)]
[][repeat until <not <mouse down?>>]
[][][clear]
[][][go to x: (click x) y: (click y)]
[][][pen down]
[][][go to x: (click x) y: (mouse y)]
[][][go to x: (mouse x) y: (mouse y)]
[][][go to x: (mouse x) y: (click y)]
[][][go to x: (click x) y: (click y)]
[][][pen up]
[][________________________________]
[][set [multiselect on] to [0]]
[_______]

Icon script:

[when flag clicked]
[switch to costume [not selected]]
[forever]
[][wait until <(multiselect on) = [1]>]
[][repeat until <(multiselect on) = [0]>]
[][][if <<<<(click x) > (x position)> and <(mouse x) < (x position)>> or <<(click x) < (x position)> and <(mouse x) > (x position)>>> and <<<(click y) > (y position)> and <(mouse y) < (y position)>> or <<(click y) < (y position)> and <(mouse y) > (y position)>>>>]
[][][][switch to costume [selected]]
[][][else______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________]
[][][][switch to costume [not selected]]
[][][__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________]
[][_____________________________________]
[][wait until <mouse down>]
[][switch to costume [not selected]]
[_______]

Offline

 

#31 2009-10-11 01:55:56

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Ask me anything

If you are making a game using velocity, and it is simply moving around levels, what is the speed I should use. For example, would this be too fast or too slow or just right:

Code:

<change{ velocity }by( 1
<move( velocity )steps>

Thanks.

Last edited by WeirdF (2009-10-11 01:56:11)


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#32 2009-10-11 02:03:53

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Ask me anything

You seem to know everything! But you're a whiz, so that's expected...

Are there any tutorials for a four-sprite X and Y scroller with infinite area? People can do infinite X scrolling with two sprites, so people can probably do it for X and Y...

The type of scrolling I want is like the scrolling thing in Archknight's Adventure, but upgraded for X and Y four-sprite scrolling.

If you know how anyway, just tell me. Thanks!  smile

Last edited by Jonathanpb (2009-10-11 02:09:10)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#33 2009-10-11 02:05:04

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Ask me anything

I said thanks and put the smiley BECAUSE I'M IN A GOOD MOOD!  big_smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#34 2009-10-11 05:21:04

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

Re: Ask me anything

thanks, that was helpful  big_smile

Last edited by dusski (2009-10-11 05:26:18)


dusski

Offline

 

#35 2009-10-11 07:43:16

Staraptor
Scratcher
Registered: 2008-07-29
Posts: 1000+

Re: Ask me anything

ummmm my pong


"Life is a video game. No matter how good you get, you always end up getting zapped." -Shiregu Miamoto

Offline

 

#36 2009-10-11 09:20:24

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Ask me anything

Jonathanpb wrote:

You seem to know everything! But you're a whiz, so that's expected...

Are there any tutorials for a four-sprite X and Y scroller with infinite area? People can do infinite X scrolling with two sprites, so people can probably do it for X and Y...

The type of scrolling I want is like the scrolling thing in Archknight's Adventure, but upgraded for X and Y four-sprite scrolling.

If you know how anyway, just tell me. Thanks!  smile

This might help - It's not exactly what you want, but it can be customized to have gravity, etc.

WeirdF wrote:

If you are making a game using velocity, and it is simply moving around levels, what is the speed I should use. For example, would this be too fast or too slow or just right:

Code:

<change{ velocity }by( 1
<move( velocity )steps>

Thanks.

The velocity changing is about right, but you also might want this script:

Code:

[change [velocity] by (1)]
[if <(velocity) > (5)>]
[][set [velocity] to [5]]
[_____________________]
[move (velocity) steps]

Staraptor wrote:

I need my ball to bounce in pong!

Code:

[when flag clicked]
[go to x: (0) y: (0)]
[set [x velocity] to (pick random (-5) to (5))]
[set [y velocity] to (pick random (-5) to (5))]
[forever]
[][change x by (x velocity)]
[][change y by (y velocity)[
[][if <<(x position) < ((-240) + (radius of ball))> or <(x position) > ((240) - (radius of ball))>>]
[][][go to x: (0) y: (0)]
[][][set [x velocity] to (pick random (-5) to (5))]
[][][set [y velocity] to (pick random (-5) to (5))]
[][________________________________________________________________________________________________]
[][if <touching [left paddle]>]
[][][set [x velocity] to ((x velocity) * (-1))]
[][][set x to ((([x position] of [left paddle]) + ((width of paddle) / (2))) + (radius of ball))]
[][___________________________]
[][if <touching [right paddle]>]
[][][set [x velocity] to ((x velocity) * (-1))]
[][][set x to ((([x position] of [right paddle]) - ((width of paddle) / (2))) - (radius of ball))]
[][___________________________]
[][if <(y position) > ((180) - (radius of ball))>]
[][][set [y velocity] to ((y velocity) * (-1))]
[][][set y to ((180) - (radius of ball))]
[][______________________________________________]
[][if <(y position) < ((-180) + (radius of ball))>]
[][][set [y velocity] to ((y velocity) * (-1))]
[][][set y to ((-180) + (radius of ball))]
[][______________________________________________]
[_______]

Offline

 

#37 2009-10-12 18:50:24

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

Re: Ask me anything

for what is list of variables ???  big_smile


dusski

Offline

 

#38 2009-10-12 20:02:09

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Ask me anything

The-Whiz wrote:

Ok, you need these variables (Not including the parentheses):
(click x)
(click y)
(multiselect on)
And these sprites:
pen
icon

Code:

Pen script:

[when flag clicked]
[set [multiselect on] to [0]]
[forever]
[][wait until <mouse down?>]
[][set [multiselect on] to [1]]
[][set [click x] to (mouse x)]
[][set [click y] to (mouse y)]
[][repeat until <not <mouse down?>>]
[][][clear]
[][][go to x: (click x) y: (click y)]
[][][pen down]
[][][go to x: (click x) y: (mouse y)]
[][][go to x: (mouse x) y: (mouse y)]
[][][go to x: (mouse x) y: (click y)]
[][][go to x: (click x) y: (click y)]
[][][pen up]
[][________________________________]
[][set [multiselect on] to [0]]
[_______]

Icon script:

[when flag clicked]
[switch to costume [not selected]]
[forever]
[][wait until <(multiselect on) = [1]>]
[][repeat until <(multiselect on) = [0]>]
[][][if <<<<(click x) > (x position)> and <(mouse x) < (x position)>> or <<(click x) < (x position)> and <(mouse x) > (x position)>>> and <<<(click y) > (y position)> and <(mouse y) < (y position)>> or <<(click y) < (y position)> and <(mouse y) > (y position)>>>>]
[][][][switch to costume [selected]]
[][][else______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________]
[][][][switch to costume [not selected]]
[][][__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________]
[][_____________________________________]
[][wait until <mouse down>]
[][switch to costume [not selected]]
[_______]

I made something like that with 6 sprites.


Hai.

Offline

 

#39 2009-10-13 04:33:27

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Ask me anything

Thanks!


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#40 2009-10-13 14:42:57

Staraptor
Scratcher
Registered: 2008-07-29
Posts: 1000+

Re: Ask me anything

Uhhhhhhhhhh............ What's an "of" block.


"Life is a video game. No matter how good you get, you always end up getting zapped." -Shiregu Miamoto

Offline

 

#41 2009-10-13 23:41:03

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: Ask me anything

Do you think they're going to have http://i35.tinypic.com/291kzlt.jpg in 1.5?


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

Board footer