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

#1 2010-09-30 13:46:28

tchan5158
New Scratcher
Registered: 2010-09-19
Posts: 25

Enemy Ship Refuse to Reset After Death

Hello  big_smile

What should happen once you hit spacebar to start game:

1.Purple ships from above should appear and keep spawning until 20 of them are dead.

2.If your score is above 35, Purple Eye Ship appears from the left side and randomly moves around until it is shot dead.

3.It will repeat until 10 of them died.



Problem: Purple Eye Ship sometimes doesn't reset to the left side.  It just hides...then reappears and resumes its random movement. 

My project is: 

http://scratch.mit.edu/projects/tchan5158/1326704



Also...er...I think I got too many loops going on.  Any suggestions as to make it less...um...loopy?  lol

I heard lag = LONG forever scripts and many broadcasts. 
Are my forever scripts long?  Should I break them up and make them into separate shorter forever scripts? 

Thanks  smile
-Tommy

Offline

 

#2 2010-09-30 14:27:44

tchan5158
New Scratcher
Registered: 2010-09-19
Posts: 25

Re: Enemy Ship Refuse to Reset After Death

Also I noticed that even though the purple ships are supposed to keep spawning from both locations until they died 20 times, after a few times, one ship stops spawning and the other ship keeps going O_o;;

My coding is a mess....aghhhh

Offline

 

#3 2010-09-30 16:55:42

kwickgamer
Scratcher
Registered: 2010-07-13
Posts: 42

Re: Enemy Ship Refuse to Reset After Death

I don't know how to fix the eyball ship thing, to be honest, i didn't see it, but whatever. to fix the lag just pack all those if statments into one loop. nicly done game though  big_smile


Kwickgamer Classic Collection! What is it? find out here!

Offline

 

Board footer