Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Week 0 - MIT CS50 - Issues making a sprint appear
- Purple_Spud
-
5 posts
Week 0 - MIT CS50 - Issues making a sprint appear
Hello
I'm completely new to the programming and am starting off with MIT's CS50 programming course. I'm having issues in making my sprint appear on my screen, in fact I seem to be having issues generally with the screens - when I try to share the program, its a blank backdrop. While what I'm creating is a screen to introduce my program, the sprint should be talking and guiding the user through the program.
I've looked at various tutorials and they don't seem to use similar ideas and I can't see what I've done wrong.
Thanks for any input
I'm completely new to the programming and am starting off with MIT's CS50 programming course. I'm having issues in making my sprint appear on my screen, in fact I seem to be having issues generally with the screens - when I try to share the program, its a blank backdrop. While what I'm creating is a screen to introduce my program, the sprint should be talking and guiding the user through the program.
I've looked at various tutorials and they don't seem to use similar ideas and I can't see what I've done wrong.
Thanks for any input
- Purple_Spud
-
5 posts
Week 0 - MIT CS50 - Issues making a sprint appear
My project (https://i.imgur.com/24U99Cb.png)
Sorry! I didn't realise I wouldn't be able to edit a linky in once the post was submitted.
Sorry! I didn't realise I wouldn't be able to edit a linky in once the post was submitted.
Last edited by Purple_Spud (Nov. 19, 2017 14:13:03)
- mstone326
-
1000+ posts
Week 0 - MIT CS50 - Issues making a sprint appear
Can you share the actual project so we can see what you have done so far and we can help nudge you to a solution with giving the full answer. Have you explored the when backdrop switches to (whatever backdrop) then tell your sprite to show.
Edit. I just look at your image of the code. YOu are coding the backdrop.Click on the girl and code her to show. Backdrops will always show. Use the sweitch backdrop to (whatever) to change backdrops. Use the hide show blocks on sprites.
You can drag that hat block and all the scripts will go with it onto the girl sprite and then she will own them, at that point, you can delete those from the backdrop.
Edit2: Looking at your scripts again. You should use the say hello for 2 seconds block instead of the say block. The say block requires you to cancel it when it is completed. The 2 seconds block will terminate it after the time you choose.
Edit. I just look at your image of the code. YOu are coding the backdrop.Click on the girl and code her to show. Backdrops will always show. Use the sweitch backdrop to (whatever) to change backdrops. Use the hide show blocks on sprites.
You can drag that hat block and all the scripts will go with it onto the girl sprite and then she will own them, at that point, you can delete those from the backdrop.
Edit2: Looking at your scripts again. You should use the say hello for 2 seconds block instead of the say block. The say block requires you to cancel it when it is completed. The 2 seconds block will terminate it after the time you choose.
Last edited by mstone326 (Nov. 19, 2017 14:22:25)
- deck26
-
1000+ posts
Week 0 - MIT CS50 - Issues making a sprint appear
Also note that if a sprite is hidden it can't ‘say’ anything so the say block has no effect.
- Purple_Spud
-
5 posts
Week 0 - MIT CS50 - Issues making a sprint appear
Ok so I've done more work on my project and now I have more questions:
1. In what order should I do the project? I'm struggling to know which part to do first; I've got a good written outline but then when I try to implement it, I'm getting bogged down in details.
2. How do I hide the sprites on the first background - they seem to appear as default regardless of the slide I am working on?
3. Why does the letter A refuse to move back in line?
4. How do I make the background and the (eventually dancing &) flashing letters co-ordinate? They only seem to want to do one or the other?
Feel free to send me along to watch some videos to answer these questions, I've looked and what I'm trying to do is more complicated than the assistance I've been able to find so far.
Cheers!
1. In what order should I do the project? I'm struggling to know which part to do first; I've got a good written outline but then when I try to implement it, I'm getting bogged down in details.
2. How do I hide the sprites on the first background - they seem to appear as default regardless of the slide I am working on?
3. Why does the letter A refuse to move back in line?
4. How do I make the background and the (eventually dancing &) flashing letters co-ordinate? They only seem to want to do one or the other?
Feel free to send me along to watch some videos to answer these questions, I've looked and what I'm trying to do is more complicated than the assistance I've been able to find so far.
Cheers!
Last edited by Purple_Spud (Nov. 23, 2017 16:31:54)
- deck26
-
1000+ posts
Week 0 - MIT CS50 - Issues making a sprint appear
It'll be easier to help if you can share the project. Whether you code for each backdrop separately really depends on what you're doing but the advice above was (I think) mainly concerned with putting the code in the right place - the code for the sprite has to be in the sprite's script area.
- Purple_Spud
-
5 posts
Week 0 - MIT CS50 - Issues making a sprint appear
https://scratch.mit.edu/projects/187407596/
Is there an easier way to share projects than dropping links on here?
Is there an easier way to share projects than dropping links on here?
Last edited by Purple_Spud (Nov. 23, 2017 16:34:03)
- deck26
-
1000+ posts
Week 0 - MIT CS50 - Issues making a sprint appear
https://scratch.mit.edu/projects/187407596/The sharing is done by clicking on Share in the project. Adding the link here just makes it easier for us to get there.
Is there an easier way to share projects than dropping links on here?
- deck26
-
1000+ posts
Week 0 - MIT CS50 - Issues making a sprint appear
2 - Have a green flag script telling the sprite to hide if you want to hide it initially. Good practice is to initialise everything before you actually run any code. Ok so I've done more work on my project and now I have more questions:
1. In what order should I do the project? I'm struggling to know which part to do first; I've got a good written outline but then when I try to implement it, I'm getting bogged down in details.
2. How do I hide the sprites on the first background - they seem to appear as default regardless of the slide I am working on?
3. Why does the letter A refuse to move back in line?
4. How do I make the background and the (eventually dancing &) flashing letters co-ordinate? They only seem to want to do one or the other?
Feel free to send me along to watch some videos to answer these questions, I've looked and what I'm trying to do is more complicated than the assistance I've been able to find so far.
Cheers!
3 - at some point you must have told it to point in a direction other than 90 degrees. Either switch off the rotation of the sprite or tell it to point in direction 90.
1 & 4 identify one thing you want to do. At the moment you've been vague on details.
- Discussion Forums
- » Help with Scripts
-
» Week 0 - MIT CS50 - Issues making a sprint appear