Discuss Scratch

KN1516
New Scratcher
14 posts

Merging 4 projects into 1?

Hi footsocktoe,

Here is the link to a screen-cap of the code of the sprite ‘Rocks’
link

The sprite is a rock, which hurtles towards a spaceship. The spaceship shoots the rocks with shooters. I would like to make the rock move faster after a certain amount of time, so it isn't so boring.

Best regards,
KN1516

Last edited by KN1516 (June 25, 2017 03:46:20)

KN1516
New Scratcher
14 posts

Merging 4 projects into 1?

Hi footsocktoe,

Here is the link (the above one does not work) :
https://drive.google.com/file/d/0B-6pOihc5ffvVExmWVh6dEU5dmM/view?usp=sharing

Best regards,
KN1516
BotanAI
Scratcher
100+ posts

Merging 4 projects into 1?

Hello KN1516,

Does your script not already work?

Best wishes,
BotanAI.
BotanAI
Scratcher
100+ posts

Merging 4 projects into 1?

Well met, KN1516,

I think I found the problem. You don't actually stop the previous forever loops, so the sprite is attempting to do three diferent things at once.

Create a variable called speed, and put “when green flag clicked- set speed to 2.5” somewhere in your program.

Then, go to your original “when I recieve spaceship game.” Replace the 2.5 there with speed.

Now, delete the entire contents of RFaster and REvenFaster, but DON'T DELETE THE BROADCASTS.

Under RFaster, put “set speed to 2”

Under REvenFaster, put “set speed to 1.5”

There. Now it does exactly what you wanted it to. By creating a variable for the speed and changing it, we avoid having more than one loop running at once.

EDIT: If you shared the project, I could show you what I mean in a remix.

Farewell,
BotanAI

Last edited by BotanAI (June 25, 2017 04:01:30)

KN1516
New Scratcher
14 posts

Merging 4 projects into 1?

Hi BotanAI,

I will share the project. I would very much appreciate it if you did a remix. Just to let you know, this game is part of an ‘arcade’ consisting of 3 other games. You could look at the code for the sprite named ‘Rocks’.

There is the usual controls, then a stopwatch which starts as you play the game, and as one plays for the longer, the timer will broadcast messages which make the rock go faster. You can try the game, the name is Spaceship game' Unfortunately, when there is a ‘Level up’ (basically when the rock starts to go faster), instead of the rock going faster and everything else doesn't change, the rock glitches out and the shooter doesn't shoot it and the game randomly ends. Maybe the screen can't refresh itself fast enough? I hope you can find a solution to this problem. I aim to make the game progressively harder.

Please let me know if you have found any other problems.

Best regards,
KN1516
BotanAI
Scratcher
100+ posts

Merging 4 projects into 1?

KN1516 wrote:

Hi BotanAI,

I will share the project. I would very much appreciate it if you did a remix. Just to let you know, this game is part of an ‘arcade’ consisting of 3 other games. You could look at the code for the sprite named ‘Rocks’.

There is the usual controls, then a stopwatch which starts as you play the game, and as one plays for the longer, the timer will broadcast messages which make the rock go faster. You can try the game, the name is Spaceship game' Unfortunately, when there is a ‘Level up’ (basically when the rock starts to go faster), instead of the rock going faster and everything else doesn't change, the rock glitches out and the shooter doesn't shoot it and the game randomly ends. Maybe the screen can't refresh itself fast enough? I hope you can find a solution to this problem. I aim to make the game progressively harder.

Please let me know if you have found any other problems.

Best regards,
KN1516

The project is not shared.
KN1516
New Scratcher
14 posts

Merging 4 projects into 1?

Hi BotanAI,

I am sharing it now. Here is the link:
https://scratch.mit.edu/projects/165593495/

Best regards,
KN1516
BotanAI
Scratcher
100+ posts

Merging 4 projects into 1?

KN1516 wrote:

Hi BotanAI,

I am sharing it now. Here is the link:
https://scratch.mit.edu/projects/165593495/

Best regards,
KN1516

Bug fixed.
You also don't need to credit me.

KN1516
New Scratcher
14 posts

Merging 4 projects into 1?

BotanAI wrote:
Bug fixed.
You also don't need to credit me.


Hi BotanAI,

I deeply appreciate your quick reply and help. I feel lucky to have such a snappy reply, as this project is due tomorrow.

By the way, Where will the remix appear?

I really must credit you, because I wouldn't be able to hand this in complete without all the people mentioned in the Credits section.

Best regards,
KN1516

Last edited by KN1516 (June 25, 2017 05:53:56)

BotanAI
Scratcher
100+ posts

Merging 4 projects into 1?

KN1516 wrote:

BotanAI wrote:
Bug fixed.
You also don't need to credit me.


Hi BotanAI,

I deeply appreciate your quick reply and help. I feel lucky to have such a snappy reply, as this project is due tomorrow.

By the way, Where will the remix appear?

I really must credit you, because I wouldn't be able to hand this in complete without all the people mentioned in the Credits section.

Best regards,
KN1516

So sorry for such a late reply compared to the last one. In my time zone, it was 12 at night, and I sleep in, so I just woke up at 2 in the afternooon, haha.

The remix will appear in the bottom right of the project.

Hope your project goes well!

Powered by DjangoBB