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

#1 2013-03-16 17:19:23

tripmorgan
New Scratcher
Registered: 2013-02-12
Posts: 9

help with missile and other stuff (space invaders) ASAP

hello guys,
can you pretty pretty please help me with my sript? i need to finish this ASAP and this heck is important. so, my problem is that my fire only goes right, not up. also, asteroids and stuff are quite crippled, as you can see. can you help me please please please!
(ps. this project is a bit revised, i am not that much pro yet)

http://scratch.mit.edu/projects/tripmorgan/3183025

PLEASE THANK YOU
IF YOU HELP ILL PRAY FOR YOU EVERY * NIGHT
ASAP
AGAIN

Offline

 

#2 2013-03-16 17:22:22

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: help with missile and other stuff (space invaders) ASAP

Instead of the "Move" block on the missile, try with a "Change Y by [speed]" instead.

Offline

 

#3 2013-03-16 17:25:31

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: help with missile and other stuff (space invaders) ASAP

And the same thing goes for your asteroid, set it to change Y by -6 instead of moving 6 steps.

Offline

 

#4 2013-03-16 17:28:12

tripmorgan
New Scratcher
Registered: 2013-02-12
Posts: 9

Re: help with missile and other stuff (space invaders) ASAP

ohmygod thank you so much i feel pretty stupid but it's 4 am here maybe that's the reason (lies)
also, i do not want to inconvenience you guys any further but can you also help me with that big spaceship thing and its asteroid? you guys are the best thank you again

Offline

 

#5 2013-03-16 17:37:06

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: help with missile and other stuff (space invaders) ASAP

Apply the same to your "Big Boss" and the "Bonus" sprite, and they should move in the right direction.

Offline

 

#6 2013-03-16 18:00:32

tripmorgan
New Scratcher
Registered: 2013-02-12
Posts: 9

Re: help with missile and other stuff (space invaders) ASAP

god this crippled thing is going to be the project i've ever handed
if you are not that sleepy yet, i have just a few problems left (look i rhymed)
-that * barriers stay same even though i shoot them. they better go.
-and because of that * barriers, my missile starts from the middle of the scene
-how can i add an instructions page to that *

god you are literally the best
i feel like a craven
on a scale of 1 to morgan freeman, you are morgan freeman

Offline

 

#7 2013-03-16 18:05:09

tripmorgan
New Scratcher
Registered: 2013-02-12
Posts: 9

Re: help with missile and other stuff (space invaders) ASAP

and now that asteroids do not hit me
i'm like forever alone
no asteroid likes me
i went crazy
i guess

Offline

 

#8 2013-03-16 18:21:39

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: help with missile and other stuff (space invaders) ASAP

when [space v] key pressed
broadcast [it's missile v]
switch to costume [visible v]
set x to (ship x)
set x to <(ship y) + [10]>
rest of the scripts
This should cause the missile to spawn before passing the barriers.

Offline

 

#9 2013-03-16 18:24:50

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: help with missile and other stuff (space invaders) ASAP

Sorry, I made a mitsake in that one. The second one is supposed to be Y instead of X:

when [space v] key pressed
broadcast [it's missile v]
switch to costume [visible v]
set x to (ship x)
set y to <(ship y) + [10]>
rest of the script
And for the asteroid, you can use the same script for when the enemy ships hit you.

Offline

 

#10 2013-03-16 18:42:40

tripmorgan
New Scratcher
Registered: 2013-02-12
Posts: 9

Re: help with missile and other stuff (space invaders) ASAP

you can say that i am a total idiot but how can i make that rest of the script thing as you've written? i've made a list name "rest of the script" for that but we haven't discussed lists yet so i didn't really get this one
neither asteroid one
if you could explain this to me, you would become god btw
after that, i will set you free forever
promise

Offline

 

#11 2013-03-16 18:46:11

Harald
New Scratcher
Registered: 2013-03-05
Posts: 34

Re: help with missile and other stuff (space invaders) ASAP

What I mean is you should add this script to your missile instead of the current one that doesn't have

set y to <(ship y) + [10]>
"rest of the script" just means that you should keep whatever you already have.

Offline

 

#12 2013-03-19 14:34:51

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: help with missile and other stuff (space invaders) ASAP

when gf clicked
show
point in direction [90 v]
switch to costume [costume2 v]
go to x: [0] y: [0]
delete [all] of [storer v]
insert [pencil] at [1] of [storer v]
insert [paper] at [2] of [storer v]
insert [scissiors] at [3] of storer v]
say [this is what you have to start in your storer:] for [2] secs
set [counter v] to [1]
repeat (length of [storer v)
say (item (counter) of [storer v]
change [counter v] by [1]
end
wait [1] secs
ask [ready for the adventure?] and wait
if <(answer) = [yes]>
broadcast [adventure v]
else
broadcast [NO v]
end

when I receive [NO v]
point in direction [180 v]
repeat until <touching [edge v]?>
wait [0.3] secs
move [10] steps
end
hide

when I receive [adventure v]
set [timer v] to [0]
forever
change [timer v] by [1]
wait [1] secs
end

when I receive [adventure v]
broadcast [music piece 1 v]
switch to costume [costume3 v]
go to x: [-216] y: [-135]
point in direction [90 v]

when I receive [music piece 1 v]
repeat [2]
play note [52] for [0.5] beats
play note [62] for [0.5] beats
play note [64] for [0.5] beats
play note [59] for [0.5] beats
play note [59] for [0.5] beats
end
broadcast [sprite2 v]

when I receive [sprite2 v]
wait [3] secs
say [hello!] for [2] secs

when I receive [thank you]
say [my pleasure] for [2] secs
i am tired of writing down the scripts in my game. i will do more tomorrow!

Offline

 

#13 2013-03-19 14:45:24

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: help with missile and other stuff (space invaders) ASAP

making up a script!

when gf clicked
wait until <hungry?>
eat
chew [10] times
if <(food taste) = [yum]
swallow food
else
chew [-10] times
spit out food
end
say (food taste) for [2] secs

Offline

 

Board footer