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

#1 2008-07-03 16:49:22

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

I need help with my game

I need help with my game. I am trying to make the marksman move but I don't know how to make the bullet start up to follow him. Download the project to see what I mean. Sprite 2 is at the end of the gun and sprite 3 (the bullet) 's script says when space pressed to go to sprite to and glide to a certain area. If you think you can help me please do. Thanks  big_smile .


Scratchin' since 2007

Offline

 

#2 2008-07-03 16:51:44

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: I need help with my game

adriangl wrote:

I need help with my game. I am trying to make the marksman move but I don't know how to make the bullet start up to follow him. Download the project to see what I mean. Sprite 2 is at the end of the gun and sprite 3 (the bullet) 's script says when space pressed to go to sprite to and glide to a certain area. If you think you can help me please do. Thanks  big_smile .

I haven't downloaded it because, if you explained it correctly, use the repeat until block, like this:

[blocks]<repeat until><< <touching[ edge  <or> <touching[ enemy  >>[/blocks]
[blocks]<move( 10  )steps>[/blocks]
[blocks]<end>[/blocks]
[blocks]<hide>[/blocks]


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-03 16:53:56

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: I need help with my game

I think you have the wrong idea. But thanks anyway  big_smile !


Scratchin' since 2007

Offline

 

#4 2008-07-03 17:01:52

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: I need help with my game

I will try to work this out on my own. But if I can't I will come back here.


Scratchin' since 2007

Offline

 

#5 2008-07-03 20:54:24

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: I need help with my game

Easy, I just did this with my game.
<when green flag clicked>
<forever><go to x sad  ((    x of sniper  <+>  *   )) )y sad  ((   Y of Sniper  <+>  *    ))
<if><key[ space ]pressed?>
<repeat( 40 )
<change x by( 10 )
<if><touching[ Target]
<broadcast[ Hit]
<hide>
<end>
<end>
<end>

* To get this number, Put the sniper in the shooting costume. Then place the bullet where you want it to come out. Do the snipers x- the bullets X. You have that number. IF the guy is pointing 90 dergrees, make it positive. If pointing -90 degrees, make it negative. Do the same for the y.

Hope this works for ya!

Offline

 

Board footer