Discuss Scratch

guess306
Scratcher
10 posts

In need of help

I'm currently working on this project named “A Game Involving Steve”. I need a little bit of help from you guys because I'm still a newbie at Scratch. Would you mind telling me what I need to fix? Thanks.

Here's the link to the game: https://scratch.mit.edu/projects/26673252/


when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end
Legomariobros
Scratcher
60 posts

In need of help

What exactly do you need help with?
guess306
Scratcher
10 posts

In need of help

Legomariobros wrote:

What exactly do you need help with?

I need help with the bugs in one of the scripts.

when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end
asivi
Scratcher
1000+ posts

In need of help

guess306 wrote:

Legomariobros wrote:

What exactly do you need help with?

I need help with the bugs in one of the scripts.
What script and how it's buggy?
drmcw
Scratcher
1000+ posts

In need of help

According to your profile you've been on Scratch over 5 years! However you only have one project and it does have all the hallmarks of someone who doesn't understand scratch I'm afraid. There are too many issues to put in one post, so perhaps if you state the important ones to you first then suggestions can be made.

Remix here to hopefully get you started https://scratch.mit.edu/projects/129082755/

Last edited by drmcw (Nov. 4, 2016 10:48:35)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Creepera55a55in
Scratcher
11 posts

In need of help

guess306
Scratcher
10 posts

In need of help

drmcw wrote:

According to your profile you've been on Scratch over 5 years! However you only have one project and it does have all the hallmarks of someone who doesn't understand scratch I'm afraid. There are too many issues to put in one post, so perhaps if you state the important ones to you first then suggestions can be made.

Remix here to hopefully get you started https://scratch.mit.edu/projects/129082755/

Thanks, drmcw. Now I need some help on Steve's movement. For example, you cannot move him horizontally while he's mid-air. Is there any way you can fix that? I would like to know now, please.

I obviously updated the game, so here's the link to it: https://scratch.mit.edu/projects/129221246/

Last edited by guess306 (Nov. 4, 2016 23:21:58)


when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end
amylaser
Scratcher
500+ posts

In need of help

guess306 wrote:

Thanks, drmcw. Now I need some help on Steve's movement. For example, you cannot move him horizontally while he's mid-air. Is there any way you can fix that? I would like to know now, please.

The reason Steve won't move midair is because the scripts telling him to repeatedly move up 10 steps and then repeatedly move down 10 steps have to finish first, before the program can check whether the other keys are pressed.

The best way to fix this problem would be to use variables determining Steve's x speed and y speed. Here's a remix showing how to do it: https://scratch.mit.edu/projects/129228782/

I also took the liberty of implementing scripts that simulate gravity and solid ground

Art, Animations, and Games!


~click one to check it out~
guess306
Scratcher
10 posts

In need of help

amylaser wrote:

guess306 wrote:

Thanks, drmcw. Now I need some help on Steve's movement. For example, you cannot move him horizontally while he's mid-air. Is there any way you can fix that? I would like to know now, please.

The reason Steve won't move midair is because the scripts telling him to repeatedly move up 10 steps and then repeatedly move down 10 steps have to finish first, before the program can check whether the other keys are pressed.

The best way to fix this problem would be to use variables determining Steve's x speed and y speed. Here's a remix showing how to do it: https://scratch.mit.edu/projects/129228782/

I also took the liberty of implementing scripts that simulate gravity and solid ground

Thanks, but I also need help with the other two levels of my project. Here are the problems for each level:

Level 2 (Dusk Level): No collision detection for the ground
Level 2.5 (Sky Battle against Dave): Steve immediately teleports to the bottom portion of the stage, but when the countdown ends, all seems normal. (The whole battle will be a bullet dodging type of thing once I advance my rank into a higher one and learn how to put up scripts properly.)

when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end
amylaser
Scratcher
500+ posts

In need of help

To make collision that works for ALL the levels, you need to create a new sprite called “ground”. (The collision-detection system in the old remix was color-based, which was why it only worked for one level). As the name implies, this sprite will be the ground for each level. Check out my remix again - it's been updated to do just that.

Also, for the sake of efficiency, I highly recommend that you check out this platformer tutorial by griffpatch: https://scratch.mit.edu/projects/67727504/ It shows how to make a better collision system than the simple one in my remix.

Last edited by amylaser (Nov. 5, 2016 06:26:44)


Art, Animations, and Games!


~click one to check it out~
guess306
Scratcher
10 posts

In need of help

amylaser wrote:

To make collision that works for ALL the levels, you need to create a new sprite called “ground”. (The collision-detection system in the old remix was color-based, which was why it only worked for one level). As the name implies, this sprite will be the ground for each level. Check out my remix again - it's been updated to do just that.

Also, for the sake of efficiency, I highly recommend that you check out this platformer tutorial by griffpatch: https://scratch.mit.edu/projects/67727504/ It shows how to make a better collision system than the simple one in my remix.

No thanks, I somehow figured it out. However, Steve's a bit fast, but I made him mention that peculiarity. Thanks again, though.

when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end
amylaser
Scratcher
500+ posts

In need of help

Just looked at your scripts, and it looks like instead of making a “ground sprite” you just copied the movement scripts into another forever loop with a different touch-sensing color… Dude. No need for that, it'll generate a ton of unnecessary lag.

Another remix fixing Steve's movement: https://scratch.mit.edu/projects/129332560/

Last edited by amylaser (Nov. 6, 2016 02:12:30)


Art, Animations, and Games!


~click one to check it out~
guess306
Scratcher
10 posts

In need of help

amylaser wrote:

Just looked at your scripts, and it looks like instead of making a “ground sprite” you just copied the movement scripts into another forever loop with a different touch-sensing color… Dude. No need for that, it'll generate a ton of unnecessary lag.

Another remix fixing Steve's movement: https://scratch.mit.edu/projects/129332560/

Like I said, I'm still a newbie at Scratch. I am still learning on how to put up scripts properly and eradicate every bug in one of my projects.

Last edited by guess306 (Nov. 6, 2016 04:08:56)


when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end
ProfessorNatquik
Scratcher
27 posts

In need of help

Do this:
when green flag clicked
forever
if <key [ space] pressed?> then
say [] for (2) secs
show
stop [ all]
end
end
stop
LucaR10
Scratcher
100+ posts

In need of help

If the problem is that it doesn't notice when you press space then you can do this:

when green flag clicked              
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end

The show block was not necessary.

Last edited by LucaR10 (Nov. 6, 2016 15:47:43)

guess306
Scratcher
10 posts

In need of help

LucaR10 wrote:

If the problem is that it doesn't notice when you press space then you can do this:

when green flag clicked              
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end

The show block was not necessary.

It's my signature, and I'm going to fix it right now.

when green flag clicked
forever
if <key [space v] pressed?> then
say [I once had sad stories.] for (7.3) secs
stop [all v]
end
end

Powered by DjangoBB