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

#1 2009-10-10 00:29:13

throughthefire
Scratcher
Registered: 2009-07-09
Posts: 1000+

How do you make a one sprite-one script game?

Title says all. HOW?


Back. For now. Maybe.

Offline

 

#2 2009-10-10 08:27:13

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: How do you make a one sprite-one script game?

Why would you want to? What kind of game do you want to make?


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#3 2009-10-10 08:31:56

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: How do you make a one sprite-one script game?

I've never made one, but I'm guessing you just make one sprite and put one script (no matter how long or short) on it.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#4 2009-10-10 09:08:06

The-Whiz-test
Scratcher
Registered: 2009-09-03
Posts: 30

Re: How do you make a one sprite-one script game?

It's basically like a normal game, except every function is done in one script.


I'm The-Whiz's test account.
http://i653.photobucket.com/albums/uu259/The-Whiz_photos/Picture40.png

Offline

 

#5 2009-10-10 10:00:55

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: How do you make a one sprite-one script game?

I think you need to start at the Scratch site and check out all their resource materials.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#6 2009-10-10 10:21:27

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How do you make a one sprite-one script game?

Well, if you wanted a game where a square moved around, then instead of this:
[blocks]<when[ right arrow ]key pressed>
<move( 5 )steps>

<when[ left arrow ]key pressed>
<move( -5 )steps>[/blocks] You would do this:[blocks]

<when green flag clicked>
<forever>
<if><key[ right arrow ]pressed?>
<move( 5 )steps>
<end>
<if><key[ left arrow ]pressed?>
<move( -5 )steps>
<end>
<end>[/blocks]

Last edited by WeirdF (2009-10-10 10:22:00)


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#7 2009-10-10 11:18:50

weswesrock
Scratcher
Registered: 2009-06-25
Posts: 500+

Re: How do you make a one sprite-one script game?

What kind of game?

One sprite, one scripters are easier to make then you think

Offline

 

#8 2009-10-16 14:05:47

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: How do you make a one sprite-one script game?

the ones that I saw, used a 1*1 square to draw the stage using the pen, redrawing the stage each time something moved.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#9 2009-10-19 01:30:20

j-max04
Scratcher
Registered: 2009-08-29
Posts: 53

Re: How do you make a one sprite-one script game?

What WeirdF said,Instead of

<when green flag clicked>
     <forever if><key[ Right arrow ]pressed?>
     <turn cw( 15 )degrees>
     <end>
<when green flag clicked>
     <forever if><key[ Left Arrow ]pressed?>
     <turn cw( -15 )degrees>
     <end>

You use

<when green flag clicked>
<forever>
     <if><key[ Right arrow ]pressed?>
     <turn cw( 15 )degrees>
     <end>
     <if><key[ Left Arrow ]pressed?>
     <turn cw( -15 )degrees>
     <end>
<end>

Last edited by j-max04 (2009-10-19 01:42:12)


Yesterday is history, Tomorrow is a mystery,
But Today is a gift, That is why they call it the present.

Offline

 

#10 2009-10-19 16:46:44

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: How do you make a one sprite-one script game?

Right now I'm working on a tutorial on it  yikes


http://i.imgur.com/WBkM2QQ.png

Offline

 

#11 2009-10-19 19:49:35

weswesrock
Scratcher
Registered: 2009-06-25
Posts: 500+

Re: How do you make a one sprite-one script game?

16Skittles wrote:

the ones that I saw, used a 1*1 square to draw the stage using the pen, redrawing the stage each time something moved.

Those are EXTREMELY complicated

I suggest making a good platforming game where it stamps each level  big_smile

Offline

 

#12 2009-10-20 13:47:37

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How do you make a one sprite-one script game?

16Skittles wrote:

the ones that I saw, used a 1*1 square to draw the stage using the pen, redrawing the stage each time something moved.

It used the pen down function then. Remember, if you make a pen based 1 sprite 1 script game that's more than screens changing, USE PEN DOWN AND DON'T STAMP EVERY PIXEL INDIVIDUALLY. (or prepare for huge lag and flickering)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#13 2009-10-20 13:49:51

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How do you make a one sprite-one script game?

weswesrock wrote:

16Skittles wrote:

the ones that I saw, used a 1*1 square to draw the stage using the pen, redrawing the stage each time something moved.

Those are EXTREMELY complicated

I suggest making a good platforming game where it stamps each level  big_smile

Not true. Check out my 1 sprite 1 script game. It only used:


<change{  }by(
<set{  }to(
<{  }>
((  <+>  ))
((  <*>  ))
((  </>  ))
<round(
<(  <=>  )>
<<  <and>  >>
<go to x sad   )y sad 
<clear>
<pen down>
<pen up>
<set pen color to(
<stamp>
<change x by(
<play sound[
<when green flag clicked>
<if>
<repeat until>
<key[  ]pressed?>

That may sound a lot, but try this: make a game where you are shooting circles coming down onto your part of the screen with a scoring system. You'll use most of those blocks.

Last edited by juststickman (2009-10-20 13:50:46)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#14 2009-10-22 21:02:07

TimesTwo
Scratcher
Registered: 2009-10-22
Posts: 2

Re: How do you make a one sprite-one script game?

Games...doesn't anyone make movies anymore?
Well, I guess they don't have to make movies.
   
-Release may vary...
__________________________________________________
Mark your calender for one of the best games ever...

Offline

 

#15 2009-10-22 21:15:45

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: How do you make a one sprite-one script game?

TimesTwo wrote:

Games...doesn't anyone make movies anymore?
Well, I guess they don't have to make movies.
   
-Release may vary...
__________________________________________________
Mark your calender for one of the best games ever...

Scratch wasn't designed for movies


http://i.imgur.com/WBkM2QQ.png

Offline

 

Board footer