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

#1 2012-01-11 04:26:14

raaheron
New Scratcher
Registered: 2011-11-24
Posts: 17

i need help1!!!

please help i am making a role playing game and the character uses a bow and arrow but i dont know how to make the arrow "shoot" at an enemy i want it to be able to shoot where i click. please any help would be nice

Offline

 

#2 2012-01-11 05:52:04

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: i need help1!!!

Here's a project you might be able to use as a starter...it has an archer

http://scratch.mit.edu/projects/Paddle2See/240027

Or, if you want to see a gallery of shooting demos and tutorials, there's this one

http://scratch.mit.edu/galleries/view/71748


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2012-02-01 17:29:21

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: i need help1!!!

1. use 2 sprites, one for the character and the other for the arrow
2. when the player shoots, have the arrow....
    A. go to the player
    B. point at the mouse cursor
3. as for going where the mouse was clicked, I would save that position as 2 variables (X and Y) and then use those to tell the arrow where to go


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer