Discuss Scratch

gold795
New Scratcher
6 posts

Questions Scratch Game

Good morning!

I have some questions regarding scratch. I would like to build a game and would like to know :

- how to create a start button and try again?
- How to add a logo at the beginning of the game at startup?
- How to create a fiction coin store?
- How to create a beautiful looking score and high score so that it matches the game graphics?

Greetings!
Paul.
ZanterZlox
Scratcher
1000+ posts

Questions Scratch Game

  1. You could create another sprite and put this script:
    whenclickedbroadcaststartWhenIreceivestartDothingsthathappenwhengamestarts
  2. if you mean thumbnail, whichever frame you stop the project at, that frame becomes the thumbnail. If you wanna go an extra step, you could create a thumbnail sprite and put this code:
    whenclickedSetghosteffectto100ForeverGotofrontlayer
    So that it appears when the stop sign is clicked.
  3. This one needs a little more effort, as it needs a shop menu thing and a shop icon the player can press. I don't have much time right now so I hope someone else gives this answer.
  4. Don't know this one actually. You could check some tutorials.
Anyways, hope that helped.
donotforgetmycode
Scratcher
1000+ posts

Questions Scratch Game

gold795 wrote:

- How to create a beautiful looking score and high score so that it matches the game graphics?
There is a tutorial for this by Griffpatch: https://www.youtube.com/watch?v=atMwy3UKc14
Sanja_228
Scratcher
7 posts

Questions Scratch Game

Oops

Last edited by Sanja_228 (June 10, 2023 16:47:41)

gold795
New Scratcher
6 posts

Questions Scratch Game

Hello!

I have this question.I made the game according to the scratch guide make it fly and now I have this question in what places to enter the codes for the play button and for the replay button?

Could someone explain it to me?

Greetings!
gold795
DifferentDance8
Scratcher
1000+ posts

Questions Scratch Game

gold795 wrote:

~snip~
I have this question.I made the game according to the scratch guide make it fly and now I have this question in what places to enter the codes for the play button and for the replay button?
~snip~
Can you please share your project and link it so that we know exactly the context? For example, are the play and replay buttons separate sprites or the same sprites using a cloning system? Are there different broadcasts for playing and replaying?

Last edited by DifferentDance8 (June 16, 2023 10:29:52)

Gamer_Logan819
Scratcher
1000+ posts

Questions Scratch Game

While it's good you're asking on the forums, coding help goes in the “Help with Scripts” forum, so I'm gonna ask for it to be moved
Gamer_Logan819
Scratcher
1000+ posts

Questions Scratch Game

gold795 wrote:

Hello!

I have this question.I made the game according to the scratch guide make it fly and now I have this question in what places to enter the codes for the play button and for the replay button?

Could someone explain it to me?

Greetings!
gold795
Also, you can create your own signature at the bottom of this page where it says “change signature”
mrman_Lane
Scratcher
12 posts

Questions Scratch Game

ZanterZlox wrote:

  1. You could create another sprite and put this script:
    whenclickedbroadcaststartWhenIreceivestartDothingsthathappenwhengamestarts
  2. if you mean thumbnail, whichever frame you stop the project at, that frame becomes the thumbnail. If you wanna go an extra step, you could create a thumbnail sprite and put this code:
    whenclickedSetghosteffectto100ForeverGotofrontlayer
    So that it appears when the stop sign is clicked.
  3. This one needs a little more effort, as it needs a shop menu thing and a shop icon the player can press. I don't have much time right now so I hope someone else gives this answer.
  4. Don't know this one actually. You could check some tutorials.
Anyways, hope that helped.


Ok, so for 3, you can do this:

For shop icon

whenthisspriteclickedswitchbackdroptoshopbroadcastopen shopandwait

For shop buttons, button effect here also

whenIreceiveopen shopwaituntiltouchingmousepointerandmousedown?iffictoins>Pricethenchangefictoinsby-PricesetMultiplier on?to1createcloneofmyselfhideelsesayYou dont have enough money!for2secs

For clone

whenIstartasacloneshowsetsizeto125%repeat50changeghost effecteffectby-2deletethisclone

Other sprites:

whenIreceiveopen shophidestopOther code in this sprite

whenIreceiveclose shopshowRuncodethatrunssprite

For close icon;

whenclickedhide

whenIreceiveopen shopshowwaituntiltouchingmouse pointer?andmousedown?hidebroadcastclose shopandwait

For what you're clicking;

whenthisspriteclickedifMultiplieron?=1thenchangefictoinsby1*multiplierelsechangefictoinsby1

For four, search “Griffpatch” on youtube. He has a tutorial
gold795
New Scratcher
6 posts

Questions Scratch Game

Thank you all for your response and I wish you a nice and wonderful weekend.
trailoft
Scratcher
16 posts

Questions Scratch Game

I need help a game i need help with the board and the colors need to do somthing red it sends you back 1 green is safe yellow is randomback 1 space of safe black sends you back and i also need help with multi player.https://scratch.mit.edu/projects/865524470/
trailoft
Scratcher
16 posts

Questions Scratch Game

E
mrman_Lane
Scratcher
12 posts

Questions Scratch Game

Your not really supposed to use someone else's discussion…
gold795
New Scratcher
6 posts

Questions Scratch Game



and tell me how to add a play button to the game and how to add a retry button ?

https://scratch.mit.edu/projects/866524063
gold795
New Scratcher
6 posts

Questions Scratch Game


Can anyone help me?
tell me how to add a play button to the game and how to add a retry button ?

https://scratch.mit.edu/projects/866524063
ZanterZlox
Scratcher
1000+ posts

Questions Scratch Game

gold795 wrote:

Can anyone help me?
tell me how to add a play button to the game and how to add a retry button ?

https://scratch.mit.edu/projects/866524063
So I checked the game and it's quite simple.

First, create a new sprite named “start” and design the start sprite however you want.
Next, put these script in the start sprite:
whenclickedGotofrontlayerSwitchcostumetostart buttonGotox:xpositionofwherethestartbuttonwillbey:ypositionofwherethestartbuttonwillbeShowWhenthisspriteclickedBroadcaststart gameHide
Next, in the other sprites(the chicken sprite, buildings, clouds, coins), replace “When flag clicked” with "when I receive [start]" so that the other sprites activate when the start buttons are clicked.
WhenIreceivestartShowDothingsthatthespritedoeswhenthegamestarts....
And also add a
whenclickedHide
To those other sprites so that they do not show immediately when the green flag is clicked.
About the retry button, you can use the same sprite as start, just add a different “retry” costume and show it when the game ends.
So let's say that when the game ends, the “end” broadcast is broadcasted.
So then, in the start sprite:
WhenIreceiveendSwitchcostumetoretry buttonGotox:Xpositionoftheplacewhereretrybuttonwillbey:ypositionoftheplacewheretheretrybuttonwillbeShow
I hope I didn't miss anything. Hope this helps.

Last edited by ZanterZlox (June 21, 2023 01:47:05)

gold795
New Scratcher
6 posts

Questions Scratch Game

Thank you ZanterZlox
Mimmie1
Scratcher
66 posts

Questions Scratch Game

ZanterZlox wrote:

gold795 wrote:

Can anyone help me?
tell me how to add a play button to the game and how to add a retry button ?

https://scratch.mit.edu/projects/866524063
So I checked the game and it's quite simple.

First, create a new sprite named “start” and design the start sprite however you want.
Next, put these script in the start sprite:
whenclickedGotofrontlayerSwitchcostumetostart buttonGotox:xpositionofwherethestartbuttonwillbey:ypositionofwherethestartbuttonwillbeShowWhenthisspriteclickedBroadcaststart gameHide
Next, in the other sprites(the chicken sprite, buildings, clouds, coins), replace “When flag clicked” with "when I receive [start]" so that the other sprites activate when the start buttons are clicked.
WhenIreceivestartShowDothingsthatthespritedoeswhenthegamestarts....
And also add a
whenclickedHide
To those other sprites so that they do not show immediately when the green flag is clicked.
About the retry button, you can use the same sprite as start, just add a different “retry” costume and show it when the game ends.
So let's say that when the game ends, the “end” broadcast is broadcasted.
So then, in the start sprite:
WhenIreceiveendSwitchcostumetoretry buttonGotox:Xpositionoftheplacewhereretrybuttonwillbey:ypositionoftheplacewheretheretrybuttonwillbeShow
I hope I didn't miss anything. Hope this helps.


ruh XD

cool signature

Powered by DjangoBB