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

#1 2012-11-02 13:01:01

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Is there

Is there any possible way to create an array or list of all the points that a sprite is touching?

I know you could do that with a gazillion one pixel points, but what would be a way to do it in one script?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#2 2012-11-02 14:36:41

DSLmediapro
Scratcher
Registered: 2012-10-27
Posts: 59

Re: Is there

mythbusteranimator wrote:

Is there any possible way to create an array or list of all the points that a sprite is touching?

I know you could do that with a gazillion one pixel points, but what would be a way to do it in one script?

How do you mean?
What's your situation?
big_smile


http://i.imgur.com/TKaDrfG.jpg

Offline

 

#3 2012-11-02 14:41:05

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Is there

I need to know how to add every single x/y position a sprite is touching into a list.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#4 2012-11-02 14:43:20

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Is there

mythbusteranimator wrote:

I need to know how to add every single x/y position a sprite is touching into a list.

hmm do you mean all the points round the outside of the sprite and the x/y co-ordinates in the middle of the sprite?


http://i49.tinypic.com/e84kdj.png

Offline

 

#5 2012-11-02 14:44:24

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Is there

Willpower wrote:

mythbusteranimator wrote:

I need to know how to add every single x/y position a sprite is touching into a list.

hmm do you mean all the points round the outside of the sprite and the x/y co-ordinates in the middle of the sprite?

Yes. I can do this with a cube or a cirle, but not an irregular shape.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#6 2012-11-02 14:49:19

Zarule6
New Scratcher
Registered: 2012-08-02
Posts: 36

Re: Is there

ummm



when gf clicked 
delete [all v] of [X-position-holder v]
delete [all v] of [Y-position-holder v]
forever
add (x position) to [X-position-holder v]//use an wait block to give the user time to move(new x&y value)

add (y position) to [Y-position-holder v]
end
hope this is what you mean !  big_smile

Offline

 

#7 2012-11-02 14:49:52

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Is there

mythbusteranimator wrote:

Willpower wrote:

mythbusteranimator wrote:

I need to know how to add every single x/y position a sprite is touching into a list.

hmm do you mean all the points round the outside of the sprite and the x/y co-ordinates in the middle of the sprite?

Yes. I can do this with a cube or a cirle, but not an irregular shape.

i'm going to have a look at the blocks that are available but i am not optimistic  sad


http://i49.tinypic.com/e84kdj.png

Offline

 

#8 2012-11-02 14:52:20

Zarule6
New Scratcher
Registered: 2012-08-02
Posts: 36

Re: Is there

Willpower wrote:

mythbusteranimator wrote:

Willpower wrote:

hmm do you mean all the points round the outside of the sprite and the x/y co-ordinates in the middle of the sprite?

Yes. I can do this with a cube or a cirle, but not an irregular shape.

i'm going to have a look at the blocks that are available but i am not optimistic  sad

Can't an person use another sprite and let it just move all over and when touching an certain colour it'll add the coordinates to the list ? thus giving the exact shape (whatever it is) out in it's x-y position values :?

ofc the if touching colour block must be used and colour changes to the shape etc ?  hmm

Offline

 

#9 2012-11-02 14:59:07

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Is there

Zarule6 wrote:

Willpower wrote:

mythbusteranimator wrote:


Yes. I can do this with a cube or a cirle, but not an irregular shape.

i'm going to have a look at the blocks that are available but i am not optimistic  sad

Can't an person use another sprite and let it just move all over and when touching an certain colour it'll add the coordinates to the list ? thus giving the exact shape (whatever it is) out in it's x-y position values :?

ofc the if touching colour block must be used and colour changes to the shape etc ?  hmm

This is all meant for one sprite.

@willpower, I don't have anything yet; just for future refrence.

If we did find a way, it would change 1s1s games FOREVAH


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#10 2012-11-02 15:03:14

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Is there

Nope, i can't find anything that would help you with the blocks we have in 1.4, sorry  sad

Last edited by Willpower (2012-11-02 15:03:24)


http://i49.tinypic.com/e84kdj.png

Offline

 

#11 2012-11-02 15:06:11

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Is there

Willpower wrote:

Nope, i can't find anything that would help you with the blocks we have in 1.4, sorry  sad

I understand.  hmm


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

Board footer