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

#1 2007-12-10 03:42:59

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

How do i Create a flash game on scratch??

I cant figure out how to make a flash game on scratch  sad  i only know how to make dressup games:( me nor my mom (Bannapple) can figure i out  sad  and i cant find any tutorials about it  sad ...so can someone give me the link to the tutorial (if there is one) or explain it please!!  big_smile

Offline

 

#2 2007-12-10 06:12:26

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: How do i Create a flash game on scratch??

Hi monkeygurl101,

I don't know if I understand your question, could you please explain what you mean with "flash game". Is this a special kind of game (as opposed to dress-up game) or are you referring to a game using the shockwave flash browser plugin?

I just had a look at your dress-up project. You seem to know quite a lot about programming in Scratch already! Maybe it would be best if you searched this site for a 'flash game' project similar to the one you would like to create, download it, and try to understand how it was done.

Else, if you could manage to be little more specific, I'd be glad to try answering your questions.


Jens Mönig

Offline

 

#3 2007-12-10 21:24:30

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

Hmmmm.... i think the best way i can explain it is....: some people can make games where you can use your mouse or the arrow keys to make a character walk around, go through doors, and lots more stuff. i mostly want to know how to make a character move with the arrow keys or mouse. because i have alot of ideas but i just dont know how to make characters move and walk through doors. so if you still dont get what i mean i can show yo\u some examples.

Offline

 

#4 2007-12-10 21:57:52

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

Re: How do i Create a flash game on scratch??

You can't convert scratch into swf (AKA flash files) format.

But if you want to move a sprite around that totally can be done in scratch.

<when green flag clicked>
<forever if> <key[ left ]pressed?>
<change x by( -10

<when green flag clicked>
<forever if> <key[ right ]pressed?>
<change x by( 10

<when green flag clicked>
<forever if> <key[ up ]pressed?>
<change y by( 10

<when green flag clicked>
<forever if> <key[  down ]pressed?>
<change x by( -10


Just experiment with the blocks and try downloading some projects  smile


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

 

#5 2007-12-11 01:38:47

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: How do i Create a flash game on scratch??

That's a very good explanation, archmage!

monkeygurl101, if you want your character to be animated, you might also want to switch between at least two different costumes while moving it around the screen, e.g. one costume could show the character's left foot in front, the next one the character's right foot. This would create a 'walking' impression.


Jens Mönig

Offline

 

#6 2007-12-11 15:07:22

ririri123
Scratcher
Registered: 2007-05-17
Posts: 5

Re: How do i Create a flash game on scratch??

Also, I can offer some help with rooms. Here's the system I've been using on the RPG I've been building. First of all, create a variable for Each of your rooms. Now just have the backround and sprites change how you want depending on if the variable is 1 or 0. Also, you'll need to make and invisible sprite as a hotspot for getting in and out of the room. Now, if you have serveral rooms, you will have to create if else scripts inside of  forever scripts. If this was too confusing, Download the demo of my RPG here:
http://scratch.mit.edu/projects/ririri123/37546
Hope that helps you create a cool flash game!

Offline

 

#7 2007-12-11 15:50:25

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: How do i Create a flash game on scratch??

ririri123, you might find it easier to have just one variable "room number".  You can then do things like setting the background to the room number.  In v1.2.1 you can even use the background number of the stage in a sensor, and not need to declare a variable!

Offline

 

#8 2007-12-11 15:51:37

ririri123
Scratcher
Registered: 2007-05-17
Posts: 5

Re: How do i Create a flash game on scratch??

Hmm, Thanks kevin, I forgot the implications of the new 1.2 blocks, That helps!

Offline

 

#9 2007-12-11 16:10:37

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: How do i Create a flash game on scratch??

another way to make the character move with the arrow keys is

<when[ left arrow ]key pressed>
<change x by( -10

<when[ right arrow ]key pressed>
<change x by( 10

<when[ up arrow ]key pressed>
<change y by( 10

<when[ down arrow ]key pressed>
<change y by( -10


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#10 2007-12-12 02:31:54

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

hmmmm im starting to get it better

Offline

 

#11 2007-12-12 02:42:11

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

Ok now i get how to make a picture animated or just move it but now i kinda dont get how you can make a person go through a door......

Offline

 

#12 2007-12-12 02:47:07

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: How do i Create a flash game on scratch??

Break it down into smaller steps.  What exactly do you want to have happen?  What will the person look like?  what will the door look like? where will they be?

Offline

 

#13 2007-12-12 02:59:00

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

Hmmm i was gonna create a mini version of club penguin so here are all the answers to those: i want my character to walk through doors. like click on the door and it will bring me too the room maybe. The character will be a penguin. just a regular door. different places like.. a town with building you can go into...

those r my answers. i hope they were a little help

Offline

 

#14 2007-12-12 08:03:02

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: How do i Create a flash game on scratch??

for the main penguin, here are some scripts:
<when green flag clicked>
<forever>
<if> <mouse down?>
<go to[ mouse pointer
<end>
<end>

then for going to a room:
<when green flag clicked>
<forever>
<if> <touching[ door
<broadcast[ go into room
<end>
<end>

for the stage:
<when I receive[ go into room
<switch to costume[ room

Last edited by funkymonkey (2007-12-12 08:03:31)


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#15 2007-12-12 08:22:59

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: How do i Create a flash game on scratch??

Excellent answer, funkymonkey, seems like we were writing up our answers at the same time, so there might be some redundancies in mine:

If you want your "rooms" to be different backgrounds for you stage you could draw several backgrounds and a "door" sprite with two costumes (1: 'closed' and 2:'open). Then you might script something like:

[in sprite named "door"]

   when 'door' is clicked
      if costume# = 1
         switch to costume 'open'
      else
         broadcast 'next room'
         switch to costume 'closed'

[in the stage scripting area]

   when I receive 'next room'
   next costume

Using something like this you could let your character (or your first person player) loop through the rooms in your game. Each time you click on a closed door, it will open. Each time time you click on an opened door, it will take you into the next room and close the door again.

If you want the door to be at a different location in each room, don't forget to move it (you can find out which room you're in by checking the background# system variable of the stage).

You could also build a script that can close an opened door again, e.g. when you press a certain key.

Hope that helps to get you going. Please let me know, when your project is finished, I'm very curious about your ideas!


Jens Mönig

Offline

 

#16 2007-12-12 15:30:14

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

ok i have 1  more question for now...how do you make more then 1 room?

Offline

 

#17 2007-12-12 18:34:13

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

nevermind i figured it out!!

Offline

 

#18 2007-12-14 03:58:49

dressupgamesrule
Scratcher
Registered: 2007-12-14
Posts: 1

Re: How do i Create a flash game on scratch??

HELP ME I WANT TO MAKE A GAME OR DRESS UP GAME TO HELP ME PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:C

Offline

 

#19 2007-12-14 11:09:33

Mick
Scratcher
Registered: 2007-03-23
Posts: 100+

Re: How do i Create a flash game on scratch??

monkeygurl101 wrote:

Hmmmm.... i think the best way i can explain it is....: some people can make games where you can use your mouse or the arrow keys to make a character walk around, go through doors, and lots more stuff. i mostly want to know how to make a character move with the arrow keys or mouse. because i have alot of ideas but i just dont know how to make characters move and walk through doors. so if you still dont get what i mean i can show yo\u some examples.

So you mean... a game? Uh... download some of mine & try to learn from them. Id make it easier if I could, if the comment block was still here & if I had the time, but I dont. Sorry.

Last edited by Mick (2007-12-14 11:10:04)


Go to www.legoless.com
It's my blog.  big_smile

Offline

 

#20 2007-12-14 16:01:26

monkeygurl101
Scratcher
Registered: 2007-12-10
Posts: 11

Re: How do i Create a flash game on scratch??

dressupgamesrule wrote:

HELP ME I WANT TO MAKE A GAME OR DRESS UP GAME TO HELP ME PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:C

Have you used scratch at all yet?

Offline

 

#21 2007-12-14 21:05:33

spongebob312
Scratcher
Registered: 2007-12-14
Posts: 1

Re: How do i Create a flash game on scratch??

well i just can't find out how i can make a game.

Offline

 

#22 2007-12-14 23:59:27

jennybuggy
Scratcher
Registered: 2007-12-14
Posts: 2

Re: How do i Create a flash game on scratch??

i still have no idea how to create a game!

Offline

 

#23 2007-12-15 03:41:45

sim
Scratcher
Registered: 2007-12-12
Posts: 14

Re: How do i Create a flash game on scratch??

I can not make a cool action game in scratch all I can do is just change the things I want in someone else games HELP!


I am apart of VANN Production's  XD GO VAMPIRES AWSOME NINJA NOOFS!!!

Offline

 

#24 2007-12-15 11:33:26

Bri96
Scratcher
Registered: 2007-12-15
Posts: 1

Re: How do i Create a flash game on scratch??

Hi everyone, I am trying to learn how to make games on Scratch but I can't even figure out how to make anything move on this website (like if you were going to make a game).  sad   I don't even know  how to make a dress-up game. Can someone please let me know? Or can someone send me a link to something, please??? If you do, THANK YOU SOOOOO MUCH!  big_smile  But if you're reading this [B-Man!];  tongue
Thanks,
~ Bri96  smile

Offline

 

#25 2007-12-15 12:22:26

mygoodies
Scratcher
Registered: 2007-12-14
Posts: 6

Re: How do i Create a flash game on scratch??

How do you make the screen say: YOU WIN! if you defeat your opponent? ...  hmm

Offline

 

Board footer