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

#1 2007-08-28 01:18:16

Grunt
Scratcher
Registered: 2007-08-28
Posts: 2

Projectiles

Right.  This may have been answered somewhere else, but how do you make a sprite fire a projectile if the sprite does not have a fixed position?

Offline

 

#2 2007-08-28 06:21:08

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Projectiles

you need to have the bullet "goto" the player sprite before activating the firing script.  See my Biplanes, Multiple shot or Syarfighter projects to see an example.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-09-26 13:04:23

Marine43753
Scratcher
Registered: 2008-08-25
Posts: 16

Re: Projectiles

put this in the bullet sprite...... [blocks] <when green flag clicked><hide>(<forever><if><key[ space ]pressed?><go to[shooter<point in direction( direction of shooter<show><repeat until><<<touching[target   <or><touching[edge   >><move( 10 )steps>)[/blocks]


hope that helps  smile

Offline

 

#4 2008-10-01 15:21:57

Marine43753
Scratcher
Registered: 2008-08-25
Posts: 16

Re: Projectiles

Also look at this game:  http://scratch.mit.edu/projects/Marine43753/250760




have fun!  smile

Offline

 

Board footer