How do you get paint to appear over sprites? If you can't, I really would like to have that in the next version.
I can't do the scrolling background that I want for my game otherwise. Please help!
http://scratch.mit.edu/projects/AlveKatt/29155
Instructions; a s d w makes the charachter move. To destroy the enemies, paint a single line that touches both the enemy and the balls they fire. The more balls you get in that single line the more damage you do.
Thanks.
Offline
im afraid if you use pen or stamp it goes straight onto the background underneath any other sprites.
Offline
I'd like it if there was transparent paint, so you could 'erase' sprites
Last edited by Llamalover (2007-08-17 12:06:42)
Offline
I thought of a solution, but I don't know if it is possible.
Can you force a sprite to show up in more places than one? That way you could draw a line with multiple showings of a sprite.
I could perhaps make a whole lot of identical sprites and have them show up after eachother, but I fear it would make the game too slow...
Offline
I actually managed to get the paint with a whole bunch of sprites option to work. Alas, the game gets way to slow for it to be usefull... And at that stage you could only draw a three centimeter line. For my game there would have to be enough sprites to draw at least a couple of decimeters. I imagine what that would do to performance...
But then, I used sprites with nine costumes for the colour. Three colours in each and three lenghts. If you make a turn with the bursh that is very sharp the sprite is short. If you draw a straight line the sprite gets longer before it draws the next one. I'm thinking it may still work if I simplify the code a lot and change to one or two costumes per colour that are all quite long and settle for very edgy lines...
Anyway, If your curious of how the code looks I'll consider uploading the functioning but too complex and resource heavy to be usable version.
Offline
Perhaps you could do something like or based on this
[blocks]
<when green flag clicked>
<switch to costume[ costume 1 [/blocks](or whatever the costumes called) [blocks]
<stamp>
<set[ ghost ]effect to( 99.9 [/blocks]
Therefore the enemy is there but you can paint on it's stamp, then if you have something like [blocks]<if>
<touching color[ (whatever colour the pen is)
<end> do whatever, or <when I receive[ whatever
do whatever
[/blocks]
Last edited by Llamalover (2007-08-17 12:59:25)
Offline
Llamalover, for the blocks to appear correctly, put a [/blocks ] after the ghost effect. then type your note, then put another [blocks ] ...Only blocks should appear inside of the blocks tag, not text.
Paulmedwal
Offline
Can't you use
[blocks]
<set[ ghost ]effect to( 100
[/blocks]
instead of
[blocks]
<set[ ghost ]effect to( 99.9
[/blocks]
?
(I hate the current code required to make the blocks
it's so complicated. can't you just accept just words?)
eyra
Last edited by AngelEyra (2007-08-17 16:10:23)
Offline
angeleyra, I can't accept words because of how the feature is implemented. The blocks look for certain keywords, and then replace them with a picture (just like smilies)...The problem is that, for "set ghost effect to" I think everyone would be annoyed if I replaced the word "set" with a picture, because you may want to use the word and not refer to the Scratch blocks. I hope the new system (where you can just click on the blocks below) makes it easier.
Paulmedwal
Offline
AngelEyra wrote:
Can't you use
[blocks]
<set[ ghost ]effect to( 100
[/blocks]instead of
[blocks]
<set[ ghost ]effect to( 99.9
[/blocks]?
I could, but I wasn't sure whether the other sprites mightn't be able to see it
Offline
I believe that set ghost effect to 100 does indeed hide the sprite, which changes its ability to detect and be detected, so ghost effect 99.9 is a common hack.
Try experimenting with "if touching" code, and see whether ghost effect 99.9 and ghost effect 100 behave differently.
Offline