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

#1 2010-06-08 10:47:49

Gadasara
Scratcher
Registered: 2009-12-27
Posts: 9

help request

hi guys! How can i make a sprite shoot multiple rockets? And how can i make enemies move separately from the scroll?  thx

Offline

 

#2 2010-06-08 13:09:04

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: help request

Gadasara wrote:

hi guys! How can i make a sprite shoot multiple rockets? And how can i make enemies move separately from the scroll?  thx

Multiple rockets: Use sperate sprites and a counter-like variable.
Then use scripts like this:
http://img69.imageshack.us/img69/8541/playersz.gif
And for the projectile(Missile)
http://img341.imageshack.us/img341/6821/projectile.gif


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#3 2010-06-10 06:10:46

Gadasara
Scratcher
Registered: 2009-12-27
Posts: 9

Re: help request

thanks!! but for the enemies?

Offline

 

#4 2010-06-10 11:51:57

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: help request

For the enemies, I'm assuming you're using a scrollx variable, correct?
If so, first make a new variable for the enemy, preferably with "for this sprite only" selected, especially if you have a lot of enemies. In this example, I'll call it X position. Now use this script:
http://www.freeimagehosting.net/uploads/8686e19079.gif
There are other ways, but this is the easiest.

Simple, right?  big_smile

Last edited by hmnwilson (2010-06-10 11:53:47)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#5 2010-06-12 10:25:55

Gadasara
Scratcher
Registered: 2009-12-27
Posts: 9

Re: help request

thanks a lot guys!!!!!!!

Offline

 

Board footer