I need a laser that spins, emitted from a baddie.
Simple enough, right?
Well, I need the laser to not be able to go through, let's say, blue.
How would I get this to work?
Example:
OTHER STUFF WALL -> |------LASER--------
Oh, and stretch blocks can be used...
Offline
Have a look at the code for this: http://scratch.mit.edu/projects/calebxy/1082094
It's basically the same thing. Look at the code for the Daleks and the laser.
Offline
What do you mean spin fast? Could you upload a demo?
Offline
http://scratch.mit.edu/projects/SeptimusHeap/1084202
Uh... Yeah. I want that to not be able to beam through the color blue.
Offline
Download this: http://scratch.mit.edu/projects/calebxy/1084269
I have made the blue ball "draggable on website" as the makers of scratch say.
Offline
Ok, I've edited Calebxy's version so that the ball now blocks it, but doesn't stop the laser moving. Like a wall would.
http://scratch.mit.edu/projects/markyparky56/1084374
Offline
Ooh... I wanted it to work from any distance, like, say, right next to the shooter...
Offline
Done it. http://scratch.mit.edu/projects/calebxy/1084431
Offline
If only it worked faster... I did basically what calebxy did before I posted this thread... But I could never make it FASTER...
And I wish the laser wouldn't 'emit' from the center, just move in a circle, like my first project...
Last edited by SeptimusHeap (2010-05-29 16:53:32)
Offline
I don't think I can do any better. I might try a bit later though.
Offline
Screw faster...
I just want smooth spinning, no 'emitting'...
Offline
The way posted is already the best way to do things unless you just want a static bar. You can't make a proper lazer because scratch adds a lag after every block.
This one doesn't crawl like a bug but its still slow http://scratch.mit.edu/projects/archtest/1084810
Last edited by archmage (2010-05-29 17:16:21)
Offline
archmage wrote:
The way posted is already the best way to do things unless you just want a static bar. You can't make a proper lazer because scratch adds a lag after every block.
This one doesn't crawl like a bug but its still slow http://scratch.mit.edu/projects/archtest/1084810
Sweet! I tried, but mine is crawl-slow...
Offline
ANy way to make a custom block in smalltalk to do it?
It's in Panther, which has Code Your Own Block (CYOB).
Offline
the onyl way to make it smoother would to be if the color was always in the same spot. is the color able to move or is it always in the same area?
Offline
try archmage's method only with turn 10 degrees and set pen size to 5, and move 20 steps instead of ten, that'll speed it up even though it senses a little worse.
Offline
The way I see is use
forever
| if <touching blue>
||repeat until <not<touching blue>>
||| change stretch by (-1)
|________________________________
|broadcast 'move' and wait
_________________________________
Then have:
When I recive 'move'
clear graphic effects
Rotate (the current move script)
Offline
Just tried a way using strech blocks and it works, but it could be improved.
http://scratch.mit.edu/projects/johnnydean1/1085834
you must download
Last edited by johnnydean1 (2010-05-30 04:33:41)
Offline
I don't think this has been said yet but why don't you use stamp blocks and make it go really fast?
Offline
ScratchReallyROCKS wrote:
I don't think this has been said yet but why don't you use stamp blocks and make it go really fast?
An example?
Offline
Hmm... How about using 'distance to sprite' blocks...?
Offline
Looked at my example?
Offline
johnnydean1 wrote:
Looked at my example?
Yes, I just don't like the part where it moves up like that...
And if it could be faster...
Offline