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

#1 2012-08-13 13:21:49

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

<Cursor is touching color [ ]?>

It would make 1s1s's so much easier. I'm having to go by the cursor's coordinates at the moment. :\


Why

Offline

 

#2 2012-08-13 13:33:44

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Support.


http://i50.tinypic.com/312u714.jpg

Offline

 

#3 2012-08-13 14:08:34

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Theres an easy workaround.

Make a 1 pixel by 1 pixel sprite.

go to [mouse-pointer v]
if <touching color [#444444]?>
do stuff
end


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-08-13 14:14:50

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

Theres an easy workaround.

Make a 1 pixel by 1 pixel sprite.

go to [mouse-pointer v]
if <touching color [#444444]?>
do stuff
end

That would make it not 1s1s though.

And yeah I know I could just not make it 1s1s but I like a challenge. :p


Why

Offline

 

#5 2012-08-13 14:16:52

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

Wes64 wrote:

Theres an easy workaround.

Make a 1 pixel by 1 pixel sprite.

go to [mouse-pointer v]
if <touching color [#444444]?>
do stuff
end

That would make it not 1s1s though.

And yeah I know I could just not make it 1s1s but I like a challenge. :p

you can still have it be 1s1s and use that script.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#6 2012-08-13 14:22:18

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: <Cursor is touching color [ ]?>

I support  big_smile


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#7 2012-08-13 14:25:48

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: <Cursor is touching color [ ]?>

funelephant wrote:

I support  big_smile

+1


http://i46.tinypic.com/35ismmc.png

Offline

 

#8 2012-08-13 14:31:28

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

Wes64 wrote:

Theres an easy workaround.

Make a 1 pixel by 1 pixel sprite.

go to [mouse-pointer v]
if <touching color [#444444]?>
do stuff
end

That would make it not 1s1s though.

And yeah I know I could just not make it 1s1s but I like a challenge. :p

you can still have it be 1s1s and use that script.

Oh yeah. Don't know why I thought you couldn't. :L

That may not be fully reliable though, since it takes a few milliseconds for it to go to the mouse-pointer when there's loads of blocks, and those milliseconds may be important. Which is why it'd still be better to have this block.


Why

Offline

 

#9 2012-08-13 14:32:04

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Support.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#10 2012-08-13 14:35:32

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

Wes64 wrote:

RedRocker227 wrote:


That would make it not 1s1s though.

And yeah I know I could just not make it 1s1s but I like a challenge. :p

you can still have it be 1s1s and use that script.

Oh yeah. Don't know why I thought you couldn't. :L

That may not be fully reliable though, since it takes a few milliseconds for it to go to the mouse-pointer when there's loads of blocks, and those milliseconds may be important. Which is why it'd still be better to have this block.

Nope. The only blocks that produce lag are wait and loop blocks. Any other block is not affected, (i.e. there is no delay). Here.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#11 2012-08-13 14:39:44

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

Wes64 wrote:

you can still have it be 1s1s and use that script.

Oh yeah. Don't know why I thought you couldn't. :L

That may not be fully reliable though, since it takes a few milliseconds for it to go to the mouse-pointer when there's loads of blocks, and those milliseconds may be important. Which is why it'd still be better to have this block.

Nope. The only blocks that produce lag are wait and loop blocks. Any other block is not affected, (i.e. there is no delay). Here.

That's not what I meant. It takes time to execute blocks, and when you have over a hundred blocks as I do, it takes a noticeable amount of time for the sprite to go to the cursor, even in presentation mode.

Last edited by RedRocker227 (2012-08-13 14:39:54)


Why

Offline

 

#12 2012-08-13 14:42:42

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

That's not what I meant. It takes time to execute blocks, and when you have over a hundred blocks as I do, it takes a noticeable amount of time for the sprite to go to the cursor, even in presentation mode.

No it does not. I have personally constructed a script with well over 200 change X, change Y, and go-tos, and it still updates in one single frame.

go-to blocks do not create lag.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#13 2012-08-13 14:45:40

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

That's not what I meant. It takes time to execute blocks, and when you have over a hundred blocks as I do, it takes a noticeable amount of time for the sprite to go to the cursor, even in presentation mode.

No it does not. I have personally constructed a script with well over 200 change X, change Y, and go-tos, and it still updates in one single frame.

go-to blocks do not create lag.

This block is just way more convenient.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#14 2012-08-13 14:47:11

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

funelephant wrote:

Wes64 wrote:

RedRocker227 wrote:

That's not what I meant. It takes time to execute blocks, and when you have over a hundred blocks as I do, it takes a noticeable amount of time for the sprite to go to the cursor, even in presentation mode.

No it does not. I have personally constructed a script with well over 200 change X, change Y, and go-tos, and it still updates in one single frame.

go-to blocks do not create lag.

This block is just way more convenient.

thats true, but the scratch team usually does not accept ideas if there is an easy work-around.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#15 2012-08-13 14:47:45

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

That's not what I meant. It takes time to execute blocks, and when you have over a hundred blocks as I do, it takes a noticeable amount of time for the sprite to go to the cursor, even in presentation mode.

No it does not. I have personally constructed a script with well over 200 change X, change Y, and go-tos, and it still updates in one single frame.

go-to blocks do not create lag.

You're still misunderstanding me. It will take however long it takes for hundreds of blocks to be executed before it goes to the cursor, and those hundreds of blocks will take time to execute.


Why

Offline

 

#16 2012-08-13 14:49:38

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

Wes64 wrote:

Theres an easy workaround.

Make a 1 pixel by 1 pixel sprite.

go to [mouse-pointer v]
if <touching color [#444444]?>
do stuff
end

That would make it not 1s1s though.

And yeah I know I could just not make it 1s1s but I like a challenge. :p

you can still have it be 1s1s and use that script.

It wouldn't do much.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#17 2012-08-13 14:58:08

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

Wes64 wrote:

RedRocker227 wrote:

That's not what I meant. It takes time to execute blocks, and when you have over a hundred blocks as I do, it takes a noticeable amount of time for the sprite to go to the cursor, even in presentation mode.

No it does not. I have personally constructed a script with well over 200 change X, change Y, and go-tos, and it still updates in one single frame.

go-to blocks do not create lag.

You're still misunderstanding me. It will take however long it takes for hundreds of blocks to be executed before it goes to the cursor, and those hundreds of blocks will take time to execute.

I feel like you are ignoring me. I wish you would test what I am saying, instead of saying im "misunderstanding you". Im trying to help you out with your game.  hmm

Here. This has plenty of go-to's and there isn't any lag. This one has even more, and still, no lag. No matter how many blocks in the script, if there are no repeats or waits, it is instant.

If your project is producing lag, it is probably for other reasons. I know brightness effects are known to lag when stamped, as are large sprites which have been rotated.

Last edited by Wes64 (2012-08-13 14:59:53)


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#18 2012-08-13 15:05:43

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

Wes64 wrote:

No it does not. I have personally constructed a script with well over 200 change X, change Y, and go-tos, and it still updates in one single frame.

go-to blocks do not create lag.

You're still misunderstanding me. It will take however long it takes for hundreds of blocks to be executed before it goes to the cursor, and those hundreds of blocks will take time to execute.

I feel like you are ignoring me. I wish you would test what I am saying, instead of saying im "misunderstanding you". Im trying to help you out with your game.  hmm

Here. This has plenty of go-to's and there isn't any lag. This one has even more, and still, no lag. No matter how many blocks in the script, if there are no repeats or waits, it is instant.

If your project is producing lag, it is probably for other reasons. I know brightness effects are known to lag when stamped, as are large sprites which have been rotated.

The first of those seemed quite laggy to me, for example when pressing the left or right arrow key it wouldn't move instantly, unless for whatever reason you programmed it to be like that. It was only by a few milliseconds but still, it's noticeable.

Last edited by RedRocker227 (2012-08-13 15:06:14)


Why

Offline

 

#19 2012-08-13 15:08:14

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

Wes64 wrote:

RedRocker227 wrote:


You're still misunderstanding me. It will take however long it takes for hundreds of blocks to be executed before it goes to the cursor, and those hundreds of blocks will take time to execute.

I feel like you are ignoring me. I wish you would test what I am saying, instead of saying im "misunderstanding you". Im trying to help you out with your game.  hmm

Here. This has plenty of go-to's and there isn't any lag. This one has even more, and still, no lag. No matter how many blocks in the script, if there are no repeats or waits, it is instant.

If your project is producing lag, it is probably for other reasons. I know brightness effects are known to lag when stamped, as are large sprites which have been rotated.

The first of those seemed quite laggy to me, for example when pressing the left or right arrow key it wouldn't move instantly, unless for whatever reason you programmed it to be like that. It was only by a few milliseconds but still, it's noticeable.

Yeah, I've noticed a tiny lag when I tested a go-to block.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#20 2012-08-13 15:10:54

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

funelephant wrote:

RedRocker227 wrote:

Wes64 wrote:


I feel like you are ignoring me. I wish you would test what I am saying, instead of saying im "misunderstanding you". Im trying to help you out with your game.  hmm

Here. This has plenty of go-to's and there isn't any lag. This one has even more, and still, no lag. No matter how many blocks in the script, if there are no repeats or waits, it is instant.

If your project is producing lag, it is probably for other reasons. I know brightness effects are known to lag when stamped, as are large sprites which have been rotated.

The first of those seemed quite laggy to me, for example when pressing the left or right arrow key it wouldn't move instantly, unless for whatever reason you programmed it to be like that. It was only by a few milliseconds but still, it's noticeable.

Yeah, I've noticed a tiny lag when I tested a go-to block.

I don't think it's to do with the go-to block itself, just the fact that in 1s1s's when you have hundreds of blocks it takes a while to get through them all.


Why

Offline

 

#21 2012-08-13 15:11:08

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

The first of those seemed quite laggy to me, for example when pressing the left or right arrow key it wouldn't move instantly, unless for whatever reason you programmed it to be like that. It was only by a few milliseconds but still, it's noticeable.

Did you download them or play in flash? Perhaps there is something about my compter that makes it faster, or something about yours that is slower. I see no lag when I run either in the flash player. (They do lag somewhat in presentation mode however).


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#22 2012-08-13 15:12:40

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

The first of those seemed quite laggy to me, for example when pressing the left or right arrow key it wouldn't move instantly, unless for whatever reason you programmed it to be like that. It was only by a few milliseconds but still, it's noticeable.

Did you download them or play in flash? Perhaps there is something about my compter that makes it faster, or something about yours that is slower. I see no lag when I run either in the flash player. (They do lag somewhat in presentation mode however).

Flash player. My computer is quite slow, though.


Why

Offline

 

#23 2012-08-13 15:13:56

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: <Cursor is touching color [ ]?>

RedRocker227 wrote:

Wes64 wrote:

RedRocker227 wrote:

The first of those seemed quite laggy to me, for example when pressing the left or right arrow key it wouldn't move instantly, unless for whatever reason you programmed it to be like that. It was only by a few milliseconds but still, it's noticeable.

Did you download them or play in flash? Perhaps there is something about my compter that makes it faster, or something about yours that is slower. I see no lag when I run either in the flash player. (They do lag somewhat in presentation mode however).

Flash player. My computer is quite slow, though.

Then that might be why  tongue


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#24 2012-08-13 15:17:34

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: <Cursor is touching color [ ]?>

Wes64 wrote:

RedRocker227 wrote:

Wes64 wrote:


Did you download them or play in flash? Perhaps there is something about my compter that makes it faster, or something about yours that is slower. I see no lag when I run either in the flash player. (They do lag somewhat in presentation mode however).

Flash player. My computer is quite slow, though.

Then that might be why  tongue

Hm, but I don't experience much lag on non-1s1s projects though.


Why

Offline

 

#25 2012-08-13 15:46:56

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: <Cursor is touching color [ ]?>

I understand what you're saying red, but "it'd have to execute the hundred blocks before it" is meaningless, it'd have to do them before the sensor would be any use anyway, and having a near instant alternative is just as good.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

Board footer