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

#1 2008-06-29 00:02:20

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Follow Cursor

Help! In this game, I need a circular cursor to follow the cursor, but only if it is over a color. I have tried 2 different methods, both failing. If you don't understand:

So, some games have the cursor following your mouse pointer no matter what. This one needs to have a grid-type place to move. It isn't working though!


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-06-29 00:07:07

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Follow Cursor

have a sensor saying what colour the mouse is over

<when green flag clicked>
<set[ ghost ]effect to( 100
<forever>
<go to[ mouse pointer
<if><touching color[ whatever coour you want
<set{ can't move }to( 1
<else>
<set{ can't move }to( 0
<end>
<end>

That's the scripts for the sensor, the sprites scripts are

<when green flag clicked>
<forever>
<if><( <{ can't move }> <=> 0 )>
<go to[ mouse pointer
<show>
<else>
<hide>
<end>
<end>

there you go  smile

Last edited by deatheater (2008-06-29 00:12:25)

Offline

 

#3 2008-06-29 00:17:37

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Follow Cursor

That didn't help  sad  but I have an idea. When it's clicked, it will just move to the closest colour (though this would be easier if any more help)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-06-29 00:23:37

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Follow Cursor

Could this help, it's a grid reference where it moves to the closest block http://scratch.mit.edu/projects/Paddle2See/85857

Offline

 

#5 2008-06-29 00:31:55

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Follow Cursor

deatheater wrote:

Could this help, it's a grid reference where it moves to the closest block http://scratch.mit.edu/projects/Paddle2See/85857

Not really. More like BigB's minesweeper, how it has that grid


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#6 2008-06-29 00:41:16

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Follow Cursor

I'm guessing bigb used it so that if it touches the mouse and the mouse is down it checks what it is 1,2,nothing or mine  smile



/||\
|__|

Offline

 

#7 2008-06-29 00:43:59

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Follow Cursor

deatheater wrote:

I'm guessing bigb used it so that if it touches the mouse and the mouse is down it checks what it is 1,2,nothing or mine  smile


He actually used the distance to each square, but mine isn't working  sad
/||\
|__|


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#8 2008-06-29 00:58:26

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Follow Cursor

deatheater wrote:

I'm guessing bigb used it so that if it touches the mouse and the mouse is down it checks what it is 1,2,nothing or mine  smile


He actually used the distance to each square, but mine isn't working  sad


How dare you steal my smiley :@
/||\
|__|

Offline

 

#9 2008-06-29 13:09:56

maxcode
Scratcher
Registered: 2008-02-05
Posts: 4

Re: Follow Cursor

Well,bluestribute,y dont u just download of somebody elses project?

Offline

 

#10 2008-06-29 13:22:22

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Follow Cursor

maxcode wrote:

Well,bluestribute,y dont u just download of somebody elses project?

I did. I downloaded 2 and tried both methods. Didn't work


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#11 2008-06-29 21:46:35

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Follow Cursor

I got it! The X and Y positions never went through 0,0!!!!


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer