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

#1 2007-08-15 08:48:58

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

How do you get paint to appear over sprites?

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

 

#2 2007-08-15 09:09:20

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: How do you get paint to appear over sprites?

im afraid if you use pen or stamp it goes straight onto the background underneath any other sprites.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#3 2007-08-15 09:12:26

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: How do you get paint to appear over sprites?

Aaah.

I'm putting this in the suggestions forum then...

Offline

 

#4 2007-08-15 09:49:39

Yelmo
Scratcher
Registered: 2007-07-15
Posts: 9

Re: How do you get paint to appear over sprites?

I think you and I want the same, but it's seems we lack that feature in scratch  sad , but let's keep trying (y). if you have any new tips please share with me, I'll do the same.
Best regards.

Offline

 

#5 2007-08-15 09:57:04

Llamalover
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: How do you get paint to appear over sprites?

I'd like it if there was transparent paint, so you could 'erase' sprites

Last edited by Llamalover (2007-08-17 12:06:42)


Be nice, I'm an old lady  wink

Offline

 

#6 2007-08-15 11:02:38

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: How do you get paint to appear over sprites?

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

 

#7 2007-08-16 14:33:13

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: How do you get paint to appear over sprites?

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

 

#8 2007-08-17 09:36:14

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: How do you get paint to appear over sprites?

You could make the sprite the background


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#9 2007-08-17 12:13:20

Llamalover
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: How do you get paint to appear over sprites?

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)


Be nice, I'm an old lady  wink

Offline

 

#10 2007-08-17 12:15:56

paulmedwal
Scratcher
Registered: 2007-03-09
Posts: 100+

Re: How do you get paint to appear over sprites?

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


clutter.scratch.mit.edu Visit the Clutter site to create multi-scene stories and multi-level games with Scratch.

Offline

 

#11 2007-08-17 16:09:52

AngelEyra
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: How do you get paint to appear over sprites?

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  sad
it's so complicated. can't you just accept just words?)

eyra

Last edited by AngelEyra (2007-08-17 16:10:23)


AngelEyra's . MyScratchR . Blog
Think with portals
Sorry, Companion Cube... I didn't mean to...

Offline

 

#12 2007-08-18 05:47:52

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: How do you get paint to appear over sprites?

Llamalover:

Holy cow! It actually works! I got some problems with graphic effects for the enemies, but that should be solvable with a simple delay.

Thanks!

Offline

 

#13 2007-08-18 10:27:39

paulmedwal
Scratcher
Registered: 2007-03-09
Posts: 100+

Re: How do you get paint to appear over sprites?

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


clutter.scratch.mit.edu Visit the Clutter site to create multi-scene stories and multi-level games with Scratch.

Offline

 

#14 2007-08-18 10:32:30

AlveKatt
Scratcher
Registered: 2007-08-12
Posts: 100+

Re: How do you get paint to appear over sprites?

Gah, I spoke to soon. I still can't have my scrolling background, it would stamp over the lines...

Offline

 

#15 2007-08-18 10:54:57

Llamalover
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: How do you get paint to appear over sprites?

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


Be nice, I'm an old lady  wink

Offline

 

#16 2007-08-18 11:48:59

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: How do you get paint to appear over sprites?

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

 

Board footer