Discuss Scratch

zorralamebolas
New Scratcher
1 post

Help with code

Hi! I saw this old project and I kinda started working on it for my lil brothers project fair since I really don't know any programming overall, and my scratch isn't that great. I tried contacting the original creator but they appear to be AFK for a looooooong time T T Can any of you guys help me reduce the amount of math problems that show up? If like 15 show for each of the 2 parts of the game, I would really appreciate it! If u can teach me how to do it as well I will be grateful! Your text to link here…
deck26
Scratcher
1000+ posts

Help with code

That must be one of the least efficient projects I've seen. There really is no need for so many sprites - 5 or 6 sprites with multiple costumes would be plenty for this.

The main controlling script is in the Lazer sprite. The script that does ‘if Pregunta=1 then broadcast Pregunta2’ and so on is moving from one question to the next. You can just get rid of several of those blocks to get rid of questions but make sure it has a run of questions. For example, if you were deleting all the blocks ‘if pregunta=n’ for n=10, 11 and 12 you'd need if pregunta=9 to broadcast pregunta13 instead of pregunta10.

But this isn't a difficult project to create which would be a much better way forward.

Start with a list of questions and a set of 3 answers for each - one right, two wrong. One sprite could have all the right answers and two other sprites the wrong answers. That way you randomise the positions of the 3 sprites and you only have to detect if the laser hits a right or wrong answer which is just a case of which sprite it hits.

Now you can ask the questions in turn and set the costumes for those 3 sprites according to the question number.

kiwilover2736
Scratcher
1000+ posts

Help with code

I've never seen a project with so many sprites before that are totally useless ;-; But if it's too hard to fix the glitches or if it's too laggy you might just need to make a new project and put the assets from the original project into your backpack and then into the new project.
Drew_Brezzy
New Scratcher
1 post

Help with code

Despite diligent efforts and meticulous planning, my Scratch project has encountered unexpected challenges that have hindered its functionality. Through this request for assistance, I aim to collaboratively troubleshoot and address these issues, leveraging collective expertise to achieve the desired outcomes and foster a deeper understanding of programming principles."




Save your chat history, share chats, and personalize your experience.


Erraplayz89
Scratcher
5 posts

Help with code

I need help with my code! I'm trying to make it so that the bots don't follow the screen if you don't know what I mean then check this - https://scratch.mit.edu/projects/983120038/editor/

If I haven't done the right thing, Please tell me, I'm still getting used to the editor. B)

Last edited by Erraplayz89 (April 30, 2024 22:50:27)

kiwilover2736
Scratcher
1000+ posts

Help with code

Drew_Brezzy wrote:

Despite diligent efforts and meticulous planning, my Scratch project has encountered unexpected challenges that have hindered its functionality. Through this request for assistance, I aim to collaboratively troubleshoot and address these issues, leveraging collective expertise to achieve the desired outcomes and foster a deeper understanding of programming principles."




Save your chat history, share chats, and personalize your experience.


Erraplayz89 wrote:

I need help with my code! I'm trying to make it so that the bots don't follow the screen if you don't know what I mean then check this - https://scratch.mit.edu/projects/983120038/editor/

If I haven't done the right thing, Please tell me, I'm still getting used to the editor. B)
Hello!

Please don't necropost. Necroposting is when you make a post on a topic that has been inactive for over a month. If you have any problems with your project, then please make a seperate topic. To make a topic, first go to a forums page, such as “Help with Scripts” ( https://scratch.mit.edu/discuss/7/ , and then press the “New Topic” button. Write what you need in the text boxes, and then click “Submit” to post your topic.

Powered by DjangoBB