Introduction: Story Interactive (Scratch Game)
This will be a tutorial on how to make a game in scratch with dialogue, and sprites. It will also teach you to add clips into your game, and timing, including broadcast and more.
Supplies
A laptop/Computer. Google chrome or and web search.
Step 1: How to Take the First Step
If you want a realistic looking game you will want to make a start button, and this is how you make it. First you want to make sure when the user clicks your button, the game events Triger.
First all you have to do is grab the (When this sprite clicked) block and add a hide code and a broadcast code block. The hide block is to hide the button when you click it so it wont get in the way of the rest of your game. Next the broadcast button is there so when the button is clicked it sets up the first event. Make sure to name every broadcast so you don't get confused.
Step 2: Step 2 Set Up the Story
This is a basic set of code for your game. In order to make your game you have to set up the story so your reader doesn't gets confused. All you have to do is make a sprite with your story, then you want to overlay it over the backdrop, and leave it there for a few seconds. Once you gave your reader enough time to read it you can then jump into the story.
Step 3: Step 3 Make Dialouge
What you want to do is have a sprite of all you characters in the conversation. The sprite can help show each character in the conversation. There is already a function for dialogue, but if you want your game to look better you could make a separate sprite with what the characters are saying.
Step 4: Step 4 Adding That Dialogue Box
What you want to do first is make a costume for each piece of your dialogue. We do this so we can switch costumes whenever a broadcast is sent and sent to make a character talk. So now you want to do when I receive (broadcast), is show your costume and switch the sprite to another sprite, making it look like the characters are talking. Next you want to add a wait (seconds) so your reader has time to read your dialogue.
Step 5: Step 5 Clips
When you want to show clips in your game you can upload a video or gif, but the video will be 1 frame will be a sprite, and the rest will be costumes. So what you want to do is flip each costume like a flipbook. All you have to do is add a repeat function and add how many times to repeat based on the frames. Then you want to add the next costume block into the repeat function, you also want to add a wait .1 seconds to but a gap between each frame so the whole command has time to flip through each frame. Then once the clip is done add the hide block at the end to hide the clip and move on to your story.
Step 6: Step 6 Asking Your Users
This is simple just like the start button. What you want to do is get the when sprite is clicked block. We can use that block so when the user clicks yes or no it will perform 2 different actions. What we want to do is make 2 separate sprites. Yes and No. Next make 2 different broadcast for each sprite. Add the broadcast onto the when sprite is clicked block so whenever they choose a option it leads to a different part of the story, and affecting the story as a whole.
Step 7: Step 7 Basics for Beginers and Extra
The basic step is to know that the green flag starts your game. So always add the When flag is clicked button to every sprite. Next you want to make broadcast. Broadcast helps lead 1 event to another event. Its best to organize each broadcast by number, so 1234.
Making your game clean. You don't want all your sprites to be shown imminently, so what you hand to do is use the hide block. Put the hide block under each When flag clicked, this hides the sprites. Next use the show block to show your character anytime in the story.
Step 8: Thats It!
So what did you think. Hopefully you could have learned something from this. Hopped this helped.