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

#1 2011-06-26 14:12:40

amymak
New Scratcher
Registered: 2011-06-26
Posts: 2

Reseting sprites after something happens to another sprite

So I'm making this game where the objective is to keep away from the sprites that are chasing the main character. When one of the sprites touches the main character, both go back to their original places.

However, I can't seem to find a way to get the other chasing sprites to go back to their original places when the main character has been caught. There's no way of connecting them as far as I can see.

If it helps, I do have number of lives as a variable.

That's my most immediate problem, but if anyone has any ideas for how the motion of the other sprites could be done, I wouldn't mind some tips with regard to that as well.

Offline

 

#2 2011-06-26 14:42:12

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Reseting sprites after something happens to another sprite

Hello, amymak!

First of all, this is not considered an advanced topic. Advanced topics deal with the scratch source code, etc... This would be better suited in the All About Scratch forum. Secondly, you should make the player sprite broadcast a message when it dies. Then, program the chasing sprites to go to your desired X and Y when they receive the message. If you need any further assistance, just post here.  smile  Looking forward to the project!

Thanks for reading, and scratch on!  big_smile


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#3 2011-06-27 16:15:20

amymak
New Scratcher
Registered: 2011-06-26
Posts: 2

Re: Reseting sprites after something happens to another sprite

Thanks, sorry about the incorrect placing of the thread...

Offline

 

Board footer