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

#1 2012-10-27 12:10:47

SoggyNugget
New Scratcher
Registered: 2012-10-27
Posts: 10

Help with the go to script! Please Respond!

Help with the go to script! Please Respond!
On Scratch is there a way to have a sprite go to any area of the stage except a specific area? If you know please respond I would highly appreciate it.
If you don't understand ask me and I will explain what I mean.  smile

Offline

 

#2 2012-10-27 12:28:06

Joanna_Kalmir
New Scratcher
Registered: 2012-10-27
Posts: 5

Re: Help with the go to script! Please Respond!

Hello,
Would you like the sprite to go there on its own or by having someone direct it (ex. by arrows)?

Offline

 

#3 2012-10-27 12:30:22

gfchll
Scratcher
Registered: 2012-04-21
Posts: 100+

Re: Help with the go to script! Please Respond!

hmm. i don't think so... but you can create 2 lists: one with x values except the ones you don't want and do the same for the y values. then...

when gf clicked
go to x: (item (1 v) of [x values v]) y: (item (1 v) of [y values v])
or any item (or #) you want

Last edited by gfchll (2012-10-27 12:33:39)


HELLO EVERYBODY!

Offline

 

#4 2012-10-27 12:31:37

SoggyNugget
New Scratcher
Registered: 2012-10-27
Posts: 10

Re: Help with the go to script! Please Respond!

Joanna_Kalmir wrote:

Hello,
Would you like the sprite to go there on its own or by having someone direct it (ex. by arrows)?

On it's on so it hide then shows in random spot on the stage except a specific spot.

hide
wait 0.3 seconds
show
go to ect.

Offline

 

#5 2012-10-27 12:36:23

SoggyNugget
New Scratcher
Registered: 2012-10-27
Posts: 10

Re: Help with the go to script! Please Respond!

gfchll wrote:

hmm. i don't think so... but you can create 2 lists: one with x values except the ones you don't want and do the same for the y values. then...

when gf clicked
go to x: (item (1 v) of [x values v]) y: (item (1 v) of [y values v])
or any item (or #) you want

are you able to put got blocks in or operators

Offline

 

#6 2012-10-27 12:39:31

gfchll
Scratcher
Registered: 2012-04-21
Posts: 100+

Re: Help with the go to script! Please Respond!

SoggyNugget wrote:

gfchll wrote:

hmm. i don't think so... but you can create 2 lists: one with x values except the ones you don't want and do the same for the y values. then...

when gf clicked
go to x: (item (1 v) of [x values v]) y: (item (1 v) of [y values v])
or any item (or #) you want

are you able to put got blocks in or operators

i tried but it didnt work.


HELLO EVERYBODY!

Offline

 

#7 2012-10-27 12:40:47

SoggyNugget
New Scratcher
Registered: 2012-10-27
Posts: 10

Re: Help with the go to script! Please Respond!

gfchll wrote:

SoggyNugget wrote:

gfchll wrote:

hmm. i don't think so... but you can create 2 lists: one with x values except the ones you don't want and do the same for the y values. then...

when gf clicked
go to x: (item (1 v) of [x values v]) y: (item (1 v) of [y values v])
or any item (or #) you want

are you able to put got blocks in or operators

i tried but it didnt work.

poo

Offline

 

#8 2012-10-27 12:44:26

SoggyNugget
New Scratcher
Registered: 2012-10-27
Posts: 10

Re: Help with the go to script! Please Respond!

SoggyNugget wrote:

gfchll wrote:

SoggyNugget wrote:


are you able to put got blocks in or operators

i tried but it didnt work.

poo

I guess I'll do the game but remove the idea of it the objective going in specific spots.

Offline

 

#9 2012-10-27 13:16:20

SoggyNugget
New Scratcher
Registered: 2012-10-27
Posts: 10

Re: Help with the go to script! Please Respond!

Hello I'm done my game if you have a minute please play it. Read the project notes. http://scratch.mit.edu/projects/SoggyNugget/2865055

SoggyNugget wrote:

SoggyNugget wrote:

gfchll wrote:

i tried but it didnt work.

poo

I guess I'll do the game but remove the idea of it the objective going in specific spots.

Offline

 

Board footer