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!
Offline
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
Last edited by deatheater (2008-06-29 00:12:25)
Offline
That didn't help 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)
Offline
Could this help, it's a grid reference where it moves to the closest block http://scratch.mit.edu/projects/Paddle2See/85857
Offline
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
Offline
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
/||\
|__|
Offline
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
![]()
He actually used the distance to each square, but mine isn't working![]()
/||\
|__|
Offline
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
![]()
He actually used the distance to each square, but mine isn't working![]()
How dare you steal my smiley :@
/||\
|__|
Offline
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
Offline
I got it! The X and Y positions never went through 0,0!!!!
Offline