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

#1 2010-10-27 20:23:11

WarrKing
New Scratcher
Registered: 2010-10-27
Posts: 2

Curving bullets

Hey, I'm a decently new scratcher (started this year) and have been working on scratch offline for this entire time... anyway... I created this game: http://scratch.mit.edu/projects/WarrKing/1379642 (blood bath).  Anyway... I have a problem and I was wondering if you had any sugesstions? In this game you will see that when you fire, you can curve the bullets by turning... this is because the bullets are staying centered on the player sprite turning with the character as he turns so its always pointing straight... then when fired, it repeats taking steps until it hits an edge.  Does anyone have any ideas of how to make it so the bullets fly straight when fired?

Offline

 

#2 2010-10-27 21:05:44

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Curving bullets

Blood and gore are not approved on the Scratch community. Please delete you're project and post a different, or edited version of the project.

Here are the rules you have violated in the Terms of Use

Scratch Terms of Use Rule #1 wrote:

Be respectful. When sharing projects or posting comments, remember that people of many different ages and backgrounds will see your contributions.

Scratch Terms of Use Rule #6 wrote:

Help keep the site friendly. If you feel others would find a project or comment mean, insulting, too violent, or otherwise inappropriate, click the link that says "flag as inappropriate."  In the Forums, you can do the same thing by clicking on the "Report" link below a post. The Scratch team will review, and may remove any project, comment or post.

This means that projects with inappropriate content can be removed by the Scratch Team. For future reference, if you have done something bad enough, the Scratch Team can also block, or remove your account, and IP address.

This is also not an Advanced Topic. This would rather belong in the "All About Scratch" section of the forums. The All About Scratch juncture is for project and script issues, etc, the Advanced Topics section is more for complicated scripts, and the advanced assets of Scratch. Such as modifying the source code.

Thank you for your time, and remember,
Scratch On!


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2010-10-27 21:16:03

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: Curving bullets

Here's how I would suggest doing this:

1. Create a new variable called ShotsFired.
2. Set ShotsFired to 0 when play begins.
3. Increment ShotsFired by 1 every time a shot is fired.
4. In the block for each bullet where you set the direction, just put an if around everything inside the forever block. Make it If ShotsFired<1 for your first bullet, 2 for your second, etc.

Offline

 

#4 2010-10-27 21:32:59

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Curving bullets

henley wrote:

Blood and gore are not approved on the Scratch community. Please delete you're project and post a different, or edited version of the project.

Here are the rules you have violated in the Terms of Use

Scratch Terms of Use Rule #1 wrote:

Be respectful. When sharing projects or posting comments, remember that people of many different ages and backgrounds will see your contributions.

Scratch Terms of Use Rule #6 wrote:

Help keep the site friendly. If you feel others would find a project or comment mean, insulting, too violent, or otherwise inappropriate, click the link that says "flag as inappropriate."  In the Forums, you can do the same thing by clicking on the "Report" link below a post. The Scratch team will review, and may remove any project, comment or post.

This means that projects with inappropriate content can be removed by the Scratch Team. For future reference, if you have done something bad enough, the Scratch Team can also block, or remove your account, and IP address.

This is also not an Advanced Topic. This would rather belong in the "All About Scratch" section of the forums. The All About Scratch juncture is for project and script issues, etc, the Advanced Topics section is more for complicated scripts, and the advanced assets of Scratch. Such as modifying the source code.

Thank you for your time, and remember,
Scratch On!

In my opinion that seems a little harsh...


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#5 2010-10-27 23:22:26

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Curving bullets

MathWizz wrote:

henley wrote:

Blood and gore are not approved on the Scratch community. Please delete you're project and post a different, or edited version of the project.

Here are the rules you have violated in the Terms of Use

Scratch Terms of Use Rule #1 wrote:

Be respectful. When sharing projects or posting comments, remember that people of many different ages and backgrounds will see your contributions.

Scratch Terms of Use Rule #6 wrote:

Help keep the site friendly. If you feel others would find a project or comment mean, insulting, too violent, or otherwise inappropriate, click the link that says "flag as inappropriate."  In the Forums, you can do the same thing by clicking on the "Report" link below a post. The Scratch team will review, and may remove any project, comment or post.

This means that projects with inappropriate content can be removed by the Scratch Team. For future reference, if you have done something bad enough, the Scratch Team can also block, or remove your account, and IP address.

This is also not an Advanced Topic. This would rather belong in the "All About Scratch" section of the forums. The All About Scratch juncture is for project and script issues, etc, the Advanced Topics section is more for complicated scripts, and the advanced assets of Scratch. Such as modifying the source code.

Thank you for your time, and remember,
Scratch On!

In my opinion that seems a little harsh...

It is.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#6 2010-10-27 23:43:53

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: Curving bullets

bbbeb wrote:

MathWizz wrote:

henley wrote:

Blood and gore are not approved on the Scratch community. Please delete you're project and post a different, or edited version of the project.

Here are the rules you have violated in the Terms of Use

Scratch Terms of Use Rule #1 wrote:

Be respectful. When sharing projects or posting comments, remember that people of many different ages and backgrounds will see your contributions.

This means that projects with inappropriate content can be removed by the Scratch Team. For future reference, if you have done something bad enough, the Scratch Team can also block, or remove your account, and IP address.

This is also not an Advanced Topic. This would rather belong in the "All About Scratch" section of the forums. The All About Scratch juncture is for project and script issues, etc, the Advanced Topics section is more for complicated scripts, and the advanced assets of Scratch. Such as modifying the source code.

Thank you for your time, and remember,
Scratch On!

In my opinion that seems a little harsh...

It is.

It's not harsh, it's the rules of Scratch.


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

#7 2010-10-28 08:39:23

developdood
Scratcher
Registered: 2009-04-16
Posts: 63

Re: Curving bullets

how is it insulting? you highlighted insulting


Have a look at some of my games. I made a cool physics game called "Physics Marble Cannon" which is really cool. I let anyone remix any of my projects without permission or credit necessary.

Offline

 

#8 2010-10-28 08:43:28

developdood
Scratcher
Registered: 2009-04-16
Posts: 63

Re: Curving bullets

This isn't even a violent game. I don't think you have to be mean to WarrKing.


Have a look at some of my games. I made a cool physics game called "Physics Marble Cannon" which is really cool. I let anyone remix any of my projects without permission or credit necessary.

Offline

 

#9 2010-10-28 08:44:44

developdood
Scratcher
Registered: 2009-04-16
Posts: 63

Re: Curving bullets

And to fix your game, make sure that anything pointing the bullet in the same direction of the person is outside of any loops.


Have a look at some of my games. I made a cool physics game called "Physics Marble Cannon" which is really cool. I let anyone remix any of my projects without permission or credit necessary.

Offline

 

#10 2010-10-28 10:52:53

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: Curving bullets

plenty of games have blood out there.  as long as it's not bad.

anyway just don't make the bullet repeat the step where it is centered to the player sprite, instead make it point in that direction then put the repeat block and then just the movement blocks


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#11 2010-10-28 10:57:06

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Curving bullets

You have the player's moment script in the bullet sprites. Take them out and it should work fine!


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#12 2010-10-28 21:15:46

WarrKing
New Scratcher
Registered: 2010-10-27
Posts: 2

Re: Curving bullets

alright thanks guys ill try those things and, just for you henley, ill make it child friendly
hmm

Offline

 

#13 2010-10-29 07:46:07

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Curving bullets

scratch_yoshi wrote:

bbbeb wrote:

MathWizz wrote:


In my opinion that seems a little harsh...

It is.

It's not harsh, it's the rules of Scratch.

Thats really harsh henley,
Scratch is designed to be a community that sticks together and when someone who is new (like me) who may not know all the rules of scratch asks for help from the community you should support and give advice not tell them off.
Besides look at my zombie survivor game.
sad


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#14 2010-10-29 08:01:00

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Curving bullets

Whoops! forgot to include henleys quote!!! Oh well, imagine its there.


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#15 2010-10-29 09:46:46

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Curving bullets

subzerostig wrote:

Thats really harsh henley,
Scratch is designed to be a community that sticks together and when someone who is new (like me) who may not know all the rules of scratch asks for help from the community you should support and give advice not tell them off.
Besides look at my zombie survivor game.
sad

I say that you guys are being way more harsh on me, than I was on "WarrKing"

Scratch is designed to be a kid-friendly community to share and interact with the creations of others knowing that they may or may not be younger than you. New people like you, should read FAQ's and look around the parts of the forums they understand. If they still don't know about the rules of Scratch, you should ask a member of the Scratch Team, or a moderator.

Besides, if you're so new, what are you doing on Advanced Topics? This is usually for topics that have to do with modifications to Scratch, the source code, and highly advanced projects. (Ex: 3D anything, advanced mathematics, ray tracing, etc.)

Paddle2See wrote:

Advanced Topics should hold discussions about Scratch as a programming language, methods to modify or extend Scratch, use of Mesh or other "hidden" features and so on.

Advanced Topics might also hold things like real 3D programming, Ray Tracing, Fractal displays, and other things that require advanced mathematics. These can be programmed with ordinary Scratch blocks but since they would be beyond most ordinary Scratchers, I would argue that they belong in Advanced Topics

Now to answer questions.

developdood wrote:

how is it insulting? you highlighted insulting

What if I am a five year old, and I see a project with blood. That insults me because I don't like, and cannot create projects with blood. Don't tell me that five year olds aren't on Scratch. I know four year olds who are, and have been insulted by blood.

PlayWithFire wrote:

plenty of games have blood out there.

I can't go to every single game on Scratch, and suggest to people that they should not use blood.

WarrKing wrote:

just for you henley, ill make it child friendly

This problem has already been resolved anyway.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#16 2010-10-29 10:07:04

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: Curving bullets

Henley, We should stop arguing and help each other not to point the finger of blame at each other. We could be a new member but that is only since we have had an account. I know people who have been on scratch for years and are very good, yet they no nothing of the rules.

Scratch on


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

Board footer