Discuss Scratch

codingwizard2
Scratcher
37 posts

Going to places by lists

I've recently been working on a script that one you trace your path you press a button and it should go there but it doesn't!
Please help!
This is the link to the game

https://scratch.mit.edu/projects/204420046/#editor
Scratch-Minion
Scratcher
1000+ posts

Going to places by lists

I'm not sure if this is the question, but your project draws providing you hold the mouse down while you press the arrow keys.
If the mouse is not down, you can use the arrow keys to change colour etc which you see when you move again by holding the mouse down again while you press the arrow keys.
-AvrgCoder-
Scratcher
42 posts

Going to places by lists

codingwizard2 wrote:

I've recently been working on a script that one you trace your path you press a button and it should go there but it doesn't!
Please help!
This is the link to the game

https://scratch.mit.edu/projects/204420046/#editor
Your project just works fine, you just need to hold your mouse and use the arrow keys to move

ParadoxScratching
Scratcher
100+ posts

Going to places by lists

I suggest you splitting x and y into two lists. Record the path…

forever
insert (x position) at (last v) of [x v]
insert (y position) at (last v) of [y v]
end

Repeat the path:

set [n v] to [0]
go to x: (item (n) of [x v] :: list) y: (item (n) of [y v] :: list)
change [n v] by (1)

Did I help? If so, consider following me!

codingwizard2
Scratcher
37 posts

Going to places by lists

Thanks but it still doesn't want to go!!!!!!!
deck26
Scratcher
1000+ posts

Going to places by lists

Did you mean to clear the lists at the start of the project?
ParadoxScratching
Scratcher
100+ posts

Going to places by lists

deck26 wrote:

Did you mean to clear the lists at the start of the project?
You asking me? Of course.

Did I help? If so, consider following me!

deck26
Scratcher
1000+ posts

Going to places by lists

ParadoxScratching wrote:

deck26 wrote:

Did you mean to clear the lists at the start of the project?
You asking me? Of course.
No, I'm asking the OP.

Powered by DjangoBB