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

#1 2011-09-05 09:08:02

geckowill
Scratcher
Registered: 2011-09-05
Posts: 44

making a guy the shoots a fireball and i cant make it fire

my guy is a stick man and you can see the fire ball on him and you can only fire once. PLZ help because this games got potential. smile

Offline

 

#2 2011-09-05 09:14:24

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: making a guy the shoots a fireball and i cant make it fire

Could you upload what you have so far so I can try to help you?

Offline

 

#3 2011-09-05 09:23:45

geckowill
Scratcher
Registered: 2011-09-05
Posts: 44

Re: making a guy the shoots a fireball and i cant make it fire

sure this is it.
http://scratch.mit.edu/projects/geckowill/2013663

thanksfor helping

Offline

 

#4 2011-09-05 09:30:50

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: making a guy the shoots a fireball and i cant make it fire

Fireball Script 1:

Green Flag
Hide

Fireball Script 2

When [Space Key] Pressed
Show
Repeat Until <Touching [Edge]>
  Move (10) steps
{End of Repeat Until}
Hide
Go to x: (-73) y: (2)

End of scripts for option 1
Or if you always want it where the stickman is (You will need a variable)


Fireball Script 1:

Green Flag
Set [Variable] to (0)
Hide*
Forever If < (Variable) = (0) >
  Go To [Sprite1]
{End of Forever If}

Fireball Script 2:

When [Space Key] Pressed
Set [Variable] to (1)
Show
Repeat Until <Touching [Edge]>
  Move (10) steps
{End of Repeat Until}
Set [Variable] to (0)
Hide


End of scripts for option 2

* = Changed after post #8

Last edited by laptop97 (2011-09-05 09:51:27)

Offline

 

#5 2011-09-05 09:34:38

geckowill
Scratcher
Registered: 2011-09-05
Posts: 44

Re: making a guy the shoots a fireball and i cant make it fire

thanks ill try it

Offline

 

#6 2011-09-05 09:39:10

geckowill
Scratcher
Registered: 2011-09-05
Posts: 44

Re: making a guy the shoots a fireball and i cant make it fire

its good but i want it no not be visible until he fires it. heres the new one

http://scratch.mit.edu/projects/geckowill/2013663

Offline

 

#7 2011-09-05 09:41:30

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: making a guy the shoots a fireball and i cant make it fire

Ok I'll edit the post and tell you when it's been edited.

Offline

 

#8 2011-09-05 09:46:53

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: making a guy the shoots a fireball and i cant make it fire

Ok, I edited the post, you have to shoot with the space key.

Offline

 

#9 2011-09-05 09:56:22

geckowill
Scratcher
Registered: 2011-09-05
Posts: 44

Re: making a guy the shoots a fireball and i cant make it fire

ok got the fireball working but i need help with the enemys thankz

Offline

 

#10 2011-09-05 10:11:44

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: making a guy the shoots a fireball and i cant make it fire

I don't know how to program enemies too good, sorry.

Offline

 

#11 2011-09-05 10:20:08

geckowill
Scratcher
Registered: 2011-09-05
Posts: 44

Re: making a guy the shoots a fireball and i cant make it fire

ok ill try it

Offline

 

Board footer