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

#1 2009-02-02 10:50:24

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Bullet shooting

Hello, i need help with the shooting in my Pocket Tanks Scratched game (http://scratch.mit.edu/projects/dsdude10labs/402352)  I can't get the shooting done right.
Help please

Offline

 

#2 2009-02-02 22:18:44

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

*bump please help

Offline

 

#3 2009-02-03 09:35:23

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

please, why is no one helping?

Offline

 

#4 2009-02-03 11:08:50

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Bullet shooting

your gonna need trig to work out the angle. Im still 14 so i havent learnt it yet in school

Offline

 

#5 2009-02-03 12:32:17

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Bullet shooting

Hi dsdude10,
Nice idea! Your angle and power controls are excellent!
There is no question that your bullet needs a script that starts with [blocks]<when I receive[[/blocks] fire.
I recommend making a simple script without gravity at first. Like this:
[blocks]<point in direction( <{ Angle }>
<move( <{ power }> )steps>
[/blocks]
Then start thinking how to integrate gravity to your script.

Last edited by abee (2009-02-03 12:42:24)

Offline

 

#6 2009-02-03 12:52:53

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Bullet shooting

to continue on what abee said, mabye you could have a script that then constantly change's the angle variable by one. Play around with it!

Offline

 

#7 2009-02-03 19:04:15

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

yea, i've been thinking, i'll use abee's idea and add to it but more help is appreciated

Offline

 

#8 2009-02-03 22:47:01

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Offline

 

#9 2009-02-04 06:07:21

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Bullet shooting

abee wrote:

Hi dsdude10,
Nice idea! Your angle and power controls are excellent!
There is no question that your bullet needs a script that starts with [blocks]<when I receive[[/blocks] fire.
I recommend making a simple script without gravity at first. Like this:
[blocks]<point in direction( <{ Angle }>
<move( <{ power }> )steps>
[/blocks]
Then start thinking how to integrate gravity to your script.

I have a shooting script with gravity there: http://scratch.mit.edu/projects/technoguyx/388168 Maybe dsdude10 could modify it a bit and add it to his project  smile


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#10 2009-02-04 08:42:10

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

i love your system technoguyx, i'll have to try using it, btw, when the game is out, can you advertise it in your sig, thx

Offline

 

#11 2009-02-04 18:24:58

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

alright everyone, thanks for your help, i got it working now, i'll be uploading it soon

Offline

 

#12 2009-02-04 18:27:51

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Bullet shooting

tell me when its out


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#13 2009-02-04 22:21:44

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

ok, sure

Offline

 

#14 2009-02-05 08:17:20

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Bullet shooting

dsdude10 wrote:

i love your system technoguyx, i'll have to try using it, btw, when the game is out, can you advertise it in your sig, thx

You need to make the banner and also put mine on your signature. There are the rules of the Ads I use.  smile


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#15 2009-02-05 08:54:24

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

actually, on second thought, never mind

Offline

 

#16 2009-02-07 10:58:14

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Bullet shooting

dsdude10 wrote:

actually, on second thought, never mind

Lol, okay XD


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#17 2009-02-26 08:43:12

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

*sigh* help please... I'm trying to finish this game

Offline

 

#18 2009-02-26 18:29:38

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: Bullet shooting

whoops, i meant to post that on this topic: http://scratch.mit.edu/forums/viewtopic.php?id=14043

Offline

 

Board footer