This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-06-29 14:51:59

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Help a 7 yo who wants to make an RPG?

I'm a homeschooling mom and my boys are both playing w scratch in the afternoon over the summer.  My younger one LOVES battle games, and wants to build an RPG.  I told him we should probably start with a simple game where 2 characters shoot each other and one dies.  He wants to keep track of hp. 

So i guess we have to make hp variables for the sprites and figure out what events will change the value? 

I've done some programming, but i'm having trouble finding any clear instructions . . . i mean, ive been going through pages and pages of 'helpful' stuff but i wish I could find almost a course?  like step by step teach yourself (or your kid) how to make shooter games.  There probably isnt anything like that?  i havent installed scratch on my pc yet or played w it myself . . .and i'm guessing i might need to?

anyways, any ideas or suggestions appreciated.

Offline

 

#2 2011-06-29 15:47:03

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

You'll definitely need to experiment yourself if you want to learn it.
Scratch is meant to be an intuitive language: you learn it by looking at other people's projects and trying stuff out for yourself. There are example projects which come with the full Scratch installation which should give you a basic idea of scripting.

On a side note: I don't want to criticize your parenting, but are you absolutely sure that a 7 year old should be playing, and even worse making, shooting games? ESRB rates most of those games as over 10  roll

Offline

 

#3 2011-06-29 16:26:33

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

Yeah, this boy is a strange one.  his father was letting him run around in WOW when he was 4.  he mostly liked to jump in the lava in IF and die.  The ONLY thing he will draw is battles between stick figures.  But he plays Wii nintendo games, not first person.  Just wants two cartoon characters to shoot flames at each other and one crumples.  Nothing gory.  He isnt spooked by things like his older (half) siblings were.

Without any help from me, other than showing him to the basic tutorial pdf and the videos, he created 2 sprites which, when you hit run, would each change back and forth between 'costumes' such that the dragon would breath fire and the stick figure with a wand in his hand would have a shield appear (ok, a line in front of him), and you would hear the words 'shield of justice!'.  Not bad for his first 30 minutes, I think. 

Math and logic (esp including gaming logic) is really his thing.  I honestly think he can get the concept of using variables if I walk him through it a few times.  and yes, his father's iq IS in the genius range . . i'm not making this stuff up . . . sigh

Offline

 

#4 2011-06-29 17:33:53

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

So you want to teach him about variables?

Offline

 

#5 2011-06-29 17:40:01

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

If he's into math and logic (like me), I really do suggest you put lots of it into any game you make together. It'll also help take some violence out of it  wink

I think you said you've done some programming before, you should be accustomed with variables. Just keep one thing in mind: Scratch is not a compile-and-run application, you can edit things 'on the go'. That makes a substantial difference in variables programming, as they can not only be changed by blocks but also by sliders, and they cannot be dynamically created (unfortunately).

Good luck!

Offline

 

#6 2011-06-29 18:01:14

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

Is there a way to track health points or hit points without variables?  He's the one insisting that he wants to see the HP go down. 

and dont worry, i was never advanced enough to create variables dynamically (at least not that i remember . . . might have done it in that C++ class I passed and forgot everything about.  I only ever USED vba in Access)

Offline

 

#7 2011-06-29 19:19:41

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

You need to have variables to have health. You could make a health bar with various costumes though that changes costumes depending on how much a variable's value is. Then you can just hide the variable.

Offline

 

#8 2011-06-29 19:45:37

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

thanks, interesting idea.  He does like to see the numbers tho . . . strange kid.

Offline

 

#9 2011-06-29 20:12:57

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

Yeah you may want to check out the wiki
I wrote a tutorial on how to make a turn based RPG

http://wiki.scratch.mit.edu/wiki/Turn-Based_RPG

I have also made a lot of projects that are intended to be demo projects that show the best ways to do things.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#10 2011-06-29 21:00:39

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

Thanks Archmage!  I've been looking for a simple rpg example.  i mean, a little . . . life as a mom is busy!  walk the dog, cook a meal, make the kids do their math, learn a new programming language . ..

Offline

 

#11 2011-06-29 21:14:23

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

Hahah thats not so simple.  But still, i think i could use that enough to get something where maybe you click for the user to attack (and maybe for the enemy to attack) and have the hp drop by a random number, but using a smaller random range for the enemy's attacks, so the user will usually win.  That sounds to me like a good next step after he gets his sprites to look dead. 

You've got a lot of stats there!

Offline

 

#12 2011-06-29 23:59:33

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

Well, that is a tutorial for a proper turn based RPG, if you get how it works you can dumb it down so that it just deducts random HP amounts.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#13 2011-06-30 07:57:04

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

You can, in fact, have HP without variables. But variables are so much more fun  tongue

Anyway, you can use different costumes to represent a health bar or something (or numbers) and go to the next costume when they're hit. It's IMO more complicated than variables however.

And you know VBA? I love it... it's so simple  smile  I used it back when I made OS simulations in PowerPoint.

Offline

 

#14 2011-06-30 09:38:45

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

So now I'm trying to picture HP without a variable.  My husband was annoyed that the sprites didnt have properties you could use that way, and then he just hated the visual interface (he's vision impaired, tho not as bad as when he was a kid).  But the kid seems happy about it.  He played Archmage's game a few times, and at first, the same toon died w the same hp left, so he was suspicious that it was canned, but then he played again and confirmed that the numbers were different that time.

Offline

 

#15 2011-06-30 09:49:07

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Help a 7 yo who wants to make an RPG?

Ok, any time you have a value, you should use a variable. HP is a variable no matter how you look at it and any use of it will require a variable of some sort, you can't really make any programs without variables and if statements.

A very simple RPG would be really easy to make, take this code for example.

// this denotes comments

green flag clicked
//set HP variables
set playerHP to 100
set enemyHP to 100
forever {
wait until (player attack button clicked=1)
change enemyHP by random (10 to 20)* -1
wait 1 second
change playerHP by random (10 to 20)* -1
if( playerHP<1 or enemyHP<1){
end}
}


//on the button
button clicked=1
wait 1 second
button clicked = 0


This is for a turn based RPG, other kinds are diffrent.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#16 2011-06-30 10:08:50

dbmamaz
New Scratcher
Registered: 2011-06-29
Posts: 16

Re: Help a 7 yo who wants to make an RPG?

Thanks, thats about what I was thinking.  and of course, change the sprites to dead costumes.  Oh, and i think he has fire ball sprites too.  and i still might make the bad guy's hp random range larger. 

Oh, can the random range be negative numbers instead of multiplying by -1?

(sorry i know i should just try it . . . arg)

Offline

 

Board footer