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

#1 2009-12-19 05:24:17

Buggy132k9
Scratcher
Registered: 2009-12-19
Posts: 19

First game Help

Hi, i'm very new to this thing.
Heard about it from school like 2 weeks ago and all we did was a bit of basic animating.
Yesterday i decided to actually try to make a project, after i looked at some of the wonderful projects on the website.
I've made a game, where you're trapped in a room, and zombies walk towards you (5). When 1 dies another comes and so on.
Theres an ammo box and an upgrade box, for when you run out of ammo or when the zombies get too strong for the basic damage.
http://scratch.mit.edu/projects/Buggy132k9/809899
Link ^
You gotta press q to start, and the zombies will be in the right place.
wasd to move.
Click to shoot.

As you can see there are a few bugs, listed at the notes:
Walking backwards into red gets you out.
Zombies sometimes start powerful.
Gun stops firing.

These are bugs i've found while playing the game on scratch.
Please help, as i spent quite a long time working on this, and these bugs are really annoying.
If you want to see any of the script i'd be happy to show you.

Thanks so much in advance;
~Buggy

Offline

 

#2 2009-12-19 09:31:07

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: First game Help

Buggy132k9 wrote:

Hi, i'm very new to this thing.
Heard about it from school like 2 weeks ago and all we did was a bit of basic animating.
Yesterday i decided to actually try to make a project, after i looked at some of the wonderful projects on the website.
I've made a game, where you're trapped in a room, and zombies walk towards you (5). When 1 dies another comes and so on.
Theres an ammo box and an upgrade box, for when you run out of ammo or when the zombies get too strong for the basic damage.
http://scratch.mit.edu/projects/Buggy132k9/809899
Link ^
You gotta press q to start, and the zombies will be in the right place.
wasd to move.
Click to shoot.

As you can see there are a few bugs, listed at the notes:
Walking backwards into red gets you out.
Zombies sometimes start powerful.
Gun stops firing.

These are bugs i've found while playing the game on scratch.
Please help, as i spent quite a long time working on this, and these bugs are really annoying.
If you want to see any of the script i'd be happy to show you.

Thanks so much in advance;
~Buggy

I think since you have just started Scratch you should start with something that is easier to do unless, you think that you are ready with this kind of project. I'll be happy to help you as soon as I see the scripts.

Offline

 

#3 2009-12-19 10:02:24

Buggy132k9
Scratcher
Registered: 2009-12-19
Posts: 19

Re: First game Help

Well, i think i may as well get the bugs sorted out now i have done this much.
My main annoyance is where if you walk backwards into the wall you can get out.
Here's the script i use.


<forever if><touching color[ red
<move( -20 )steps>

Last edited by Buggy132k9 (2009-12-19 10:03:01)

Offline

 

#4 2009-12-19 10:09:08

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: First game Help

Buggy132k9 wrote:

Well, i think i may as well get the bugs sorted out now i have done this much.
My main annoyance is where if you walk backwards into the wall you can get out.
Here's the script i use.


<forever if><touching color[ red
<move( -20 )steps>

Change the "Move Steps" block into X and Y blocks instead. "Move Steps" blocks sometimes cause problems. Also, when you change it make sure the character is moving in the right direction. It may suck in the character if you use the wrong direction. Hope this helps!

Offline

 

#5 2009-12-19 10:50:21

Buggy132k9
Scratcher
Registered: 2009-12-19
Posts: 19

Re: First game Help

Thanks very much, it's working perfectly now.
Theres still one pretty annoying glitch though.
Sometimes, i don't know what causes it, i'm shooting normally.
Sometimes i can get in 15 bullets sometimes i can only get in 1, but it almost always happens, that when i want to shoot, it randomly doesn't let me.
So all i can do is run around like an idiot, or restart the game.
Screenshot of all the bullets code:
http://i555.photobucket.com/albums/jj459/Bugzizco/ZombieBulletCode.jpg
The bit you can't see just says when the bullet should stop moving.
If you need to see any more code to help, please say.
Again, thanks so much in advance;
~Buggy

Offline

 

#6 2009-12-19 10:55:23

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: First game Help

Buggy132k9 wrote:

Thanks very much, it's working perfectly now.
Theres still one pretty annoying glitch though.
Sometimes, i don't know what causes it, i'm shooting normally.
Sometimes i can get in 15 bullets sometimes i can only get in 1, but it almost always happens, that when i want to shoot, it randomly doesn't let me.
So all i can do is run around like an idiot, or restart the game.
Screenshot of all the bullets code:
http://i555.photobucket.com/albums/jj459/Bugzizco/ZombieBulletCode.jpg
The bit you can't see just says when the bullet should stop moving.
If you need to see any more code to help, please say.
Again, thanks so much in advance;
~Buggy

Try to change the "Change Ammo by -1" too "Change Ammo by 1". I think that might help. I really can't do it visually that easily so if you would like the best help upload the project online so I could fix it for you then send it too you. Uploading the project would be the easiest for me.

Offline

 

#7 2009-12-19 11:05:21

Buggy132k9
Scratcher
Registered: 2009-12-19
Posts: 19

Re: First game Help

http://scratch.mit.edu/projects/Buggy132k9/809899

Thats the project without the wall glitch sorted out.
And if i change ammo by 1 then i would have unlimited ammo, because once it hits 0 i need more ammo, if you get where i'm going with this...

Anyway, the uploaded project has the same scripts for the bullet as my most updated version, apart from the "Repeat until touching colour"
"Move 10 steps"
Which is now "Repeat untill touching colour1 or colour2 or moved 200 from main"

And if you need to change anything on the main guy, the only difference is now, on my updated version, it has "change x by 20" and "change y by 20" instead of "move 20", which caused the previous glitch.

Thanks so much for all the help btw.
~Buggy

P.S.
What i mean by my most updated version compared to the uploaded project is that the project has had some minor changes since i uploaded it, such as the wall glitch killed off, and the bullet not being able to travel as far. But these changes are so minor that i will put of uploading them until all the glitches have been sorted out.

Last edited by Buggy132k9 (2009-12-19 11:08:44)

Offline

 

#8 2009-12-19 11:07:33

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: First game Help

Buggy132k9 wrote:

http://scratch.mit.edu/projects/Buggy132k9/809899

Thats the project without the wall glitch sorted out.
And if i change ammo by 1 then i would have unlimited ammo, because once it hits 0 i need more ammo, if you get where i'm going with this...

Anyway, the uploaded project has the same scripts for the bullet as my most updated version, apart from the "Repeat until touching colour"
"Move 10 steps"
Which is now "Repeat untill touching colour1 or colour2 or moved 200 from main"

And if you need to change anything on the main guy, the only difference is now, on my updated version, it has "change x by 20" and "change y by 20" instead of "move 20", which caused the previous glitch.

Thanks so much for all the help btw.
~Buggy

Okay I will fix it now. I'll tell you when I am done.

Offline

 

#9 2009-12-19 11:31:48

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: First game Help

Okay here is the link to the fix. I put it on my other account.
http://scratch.mit.edu/projects/DawnLight/810277
Hope this helps!  big_smile

Last edited by theThomasG (2009-12-19 11:32:17)

Offline

 

#10 2009-12-19 11:45:15

Buggy132k9
Scratcher
Registered: 2009-12-19
Posts: 19

Re: First game Help

Man, thanks so much, you rock!
(love you  tongue  )
Now to work on MOAR.
Mental breakdown of happiness yey.

Offline

 

#11 2009-12-19 11:48:12

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: First game Help

Buggy132k9 wrote:

Man, thanks so much, you rock!
(love you  tongue  )
Now to work on MOAR.
Mental breakdown of happiness yey.

Your very much welcome!  tongue
You can ask anytime on forums if you need help, and If I am available I will happily help you! The same goes with anyone else. I will help anyone if I am available! Hope you have fun on scratch!

Offline

 

#12 2009-12-24 09:07:01

nnndddsss111
Scratcher
Registered: 2009-12-24
Posts: 1

Re: First game Help

wait how

Last edited by nnndddsss111 (2009-12-24 09:07:38)

Offline

 

#13 2009-12-28 10:34:14

Chatter
Scratcher
Registered: 2009-11-29
Posts: 500+

Re: First game Help

Try doing

<when green flag clicked>
<set{  ammo }to(  random number

<when green flag clicked>
<forever>
<if> <(  <{  ammo  }> <=>  0  )>
<set{  ammo  }to(  the same number of bullets there would be when it's full

I know this is sorta late but... i hope it helps!  tongue


http://img19.imageshack.us/img19/2339/mcdonaldsjoke.gifAll your problems are like batter when you add a little Chatter, because when you have Chat, you're safe from bats.  big_smile
"And so?" - The little people in my brain|Status: Snow in April?

Offline

 

#14 2009-12-28 11:22:32

Buggy132k9
Scratcher
Registered: 2009-12-19
Posts: 19

Re: First game Help

Its sorted now, and that would = unlimited ammo = no point for ammo.

Offline

 

Board footer