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

#1 2008-10-24 00:59:33

jon182
Scratcher
Registered: 2008-08-08
Posts: 55

stamp feature HELP! NEED ANSWER ASAP

ok. i've made this incredibly awesome and complicated project. but for it to work i need to make it so that when something passes over a stamp of a sprite it acts like it's passing over the sprite itself. how can i do this?? i will mess with the sourcecode i'll do anything just tell me it can be done and HOW! I NEED AN ANSWER ASAP

Offline

 

#2 2008-10-24 01:55:11

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: stamp feature HELP! NEED ANSWER ASAP

You need to make sure that the stamped sprite has a distinctive colour.

Then you can use the "if touching colour" sensor block on the sprite that is moving.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-10-24 03:55:43

Sum1Else
Scratcher
Registered: 2008-10-24
Posts: 4

Re: stamp feature HELP! NEED ANSWER ASAP

which would then broadcast a message to the sprite that got "passed over" to execute the same code as if it gets passed over normally.

Hi Mayhem. Remember me? You probably don't.

Last edited by Sum1Else (2008-10-24 03:56:13)

Offline

 

#4 2008-10-24 09:48:18

jon182
Scratcher
Registered: 2008-08-08
Posts: 55

Re: stamp feature HELP! NEED ANSWER ASAP

theirs got to be anothre way! that would take FOREVER

Offline

 

#5 2008-10-24 12:05:12

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: stamp feature HELP! NEED ANSWER ASAP

It takes no longer than inserting an "if touching sprite" block, really.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#6 2008-10-25 01:49:05

jcubed
Scratcher
Registered: 2008-07-23
Posts: 65

Re: stamp feature HELP! NEED ANSWER ASAP

there's another way but its VERY complicated
It involves adding the x and y to a list every time you stamp and using a VERY COMPLICATED formula to define its edges and the other sprites edges
note: its easier if both sprites are square

ask me if you want me to program you one


Jcubed
Proud founder of Icdzat Productions.

Offline

 

#7 2008-10-25 01:57:28

jon182
Scratcher
Registered: 2008-08-08
Posts: 55

Re: stamp feature HELP! NEED ANSWER ASAP

it's done. and i found a way to do it with a list after being stupid and spendng hours giving 20 sprites 128 costumes each. anyways check out my newest project and click love-it. it's a music builder it's kick-*

Offline

 

Board footer