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
Offline
Offline
your gonna need trig to work out the angle. Im still 14 so i havent learnt it yet in school
Offline
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
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
yea, i've been thinking, i'll use abee's idea and add to it but more help is appreciated
Offline
P2S mighthelp you, hes good at trig
Offline
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
Offline
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
alright everyone, thanks for your help, i got it working now, i'll be uploading it soon
Offline
tell me when its out
Offline
Offline
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.
Offline
Offline
Offline
whoops, i meant to post that on this topic: http://scratch.mit.edu/forums/viewtopic.php?id=14043
Offline