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

#1 2009-10-20 17:18:39

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

Why make a 1-sprite 1-script game? Pros and Cons

One of the newer things you have been seeing are games, which only use one sprite, which uses just 1 script, which is most likely long, so it can fit the entire game of code. There have been multiple games of this style, made by scratchers including The-Whiz and RHY3756547. Here I am, to explain the pros (reasons to) and cons (reasons not to) of making these kinds of games.

Pros

- Smaller file size - One thing noticable, is that if you look at RHY3756547's game, LINE, which many have you have probably played, if you download it, its only about 239KB (memory), which is fairly low, compared to most advanced games. And the truth is, most of that is just from graphics. So how do you explain the miniscule (tiny tiny) file size? The reason for this, is because there is only one script.

- Less Lag (when playing) - Another reference to the game, LINE. Normally, there are many sprites with many scripts, so together, and due to all of those sprites and scripts computing all of the blocks and what to do, it can't update the screen as fast. In the 1-sprite 1-script situation, there is just one sprite to respond to, so it updates the screen when it can, which is usually fast. Some more evidence for this theory, is that when I was making my Super Smash Bros. Ball, I noticed even in presentation mode, that during the countdown (where there was no animations except for the countdown animation), it was quick to speed, but when the 'GO!' started, the last of the animation went slower because the screen had a lot more action going on.

Cons

- Very advanced - Because you have only one sprite, and not even a stage, there are many downfalls in scripting that you can't normally get through, so you have to use the complicated way to do what you want to do, or find a substitute or another solution. For example, in one of my 1-sprite 1-script projects, it requires to use the distance to mouse pointer block. So if this was not a 1-sprite 1-script project, there would be one sprite that was hidden at one location, and constantly set a variable to the distance from it to the mouse pointer, using that one simple block in the sensing category. But in this case, the sprite has other things to do, so it has to do it using the long written out way, so it acts 'as if the sprite was there'. Though the fact is, most poeople won't know the long written out formula. This obviously isn't the best example, but the first sentence in this paragraph says it all really.

- More lag (when scripting) - By this, I mean when you type in a number into a text box, there is a couple seconds of lag, before it highlights the previous number so you can type in the number you want to switch it to. Also  when your moving a script around the scripts section of the Scratch, it lags, so if you want to insert a group of blocks into the script, you have to guess at first of where it will go, and you hold the mouse longer, while the screen updates, so the script doesn't go where you don't want it to. Why does it do this? Because as scripts get longer, it generally becomes more and more laggier like this. Because the script will be long, as it is just 1 script for the entire game, it will quickly lag up.

I hope this helps. If there are any other major points, then just tell me!


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

Offline

 

#2 2009-10-21 04:23:10

08jackt
Scratcher
Registered: 2007-09-12
Posts: 1000+

Re: Why make a 1-sprite 1-script game? Pros and Cons

i made a 1 sprite/1 script one on my test account (scratch.mit.edu/users/08jackt_test its extremely simple though  smile


http://i39.tinypic.com/jgtswi.png

Offline

 

#3 2009-10-21 17:09:52

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

Re: Why make a 1-sprite 1-script game? Pros and Cons

08jackt wrote:

i made a 1 sprite/1 script one on my test account (scratch.mit.edu/users/08jackt_test its extremely simple though  smile

Interesting comment...

Maybe I shoudl change this thread to 'Why make a good/advanced 1-sprite 10script game? Pros and Cons" lol


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

Offline

 

#4 2009-10-21 17:19:38

floatingmagictree
Scratcher
Registered: 2008-10-21
Posts: 1000+

Re: Why make a 1-sprite 1-script game? Pros and Cons

I have a one-sprite-one-script Math Art project. Hold on, let me get the link....

EDIT: Here  wink

Last edited by floatingmagictree (2009-10-21 17:25:36)

Offline

 

#5 2009-10-21 18:26:13

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

Re: Why make a 1-sprite 1-script game? Pros and Cons

floatingmagictree wrote:

I have a one-sprite-one-script Math Art project. Hold on, let me get the link....

EDIT: Here  wink

You advertise that too much >.<


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

Offline

 

#6 2009-10-22 00:14:58

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Why make a 1-sprite 1-script game? Pros and Cons

Good points and such, but it gives a wrong impression... there's nothing wrong with making a one-sprite-one-script game. Yes, it can have some side effects, but people do it for the challenge.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#7 2009-10-22 15:10:49

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

Re: Why make a 1-sprite 1-script game? Pros and Cons

Chrischb wrote:

Good points and such, but it gives a wrong impression... there's nothing wrong with making a one-sprite-one-script game. Yes, it can have some side effects, but people do it for the challenge.

Well I tried to give equal points. I guess the advanced scripting is not that bad.


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

Offline

 

#8 2009-10-22 15:18:53

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

Re: Why make a 1-sprite 1-script game? Pros and Cons

If you actually want to make a good program than never use just 1 sprite and script. It will cause lag and require too many work arounds.


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

 

#9 2009-10-22 15:46:57

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

Re: Why make a 1-sprite 1-script game? Pros and Cons

archmage wrote:

If you actually want to make a good program than never use just 1 sprite and script. It will cause lag and require too many work arounds.

It depends in my opinion. Lag? Not so sure about that. When making the script, then yes. The workarounds are fun  smile

(Yes i got a post by arch w00t lulz)

Last edited by Lucario621 (2009-10-22 15:47:09)


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

Offline

 

#10 2009-10-23 01:33:52

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Why make a 1-sprite 1-script game? Pros and Cons

Lucario621 wrote:

Chrischb wrote:

Good points and such, but it gives a wrong impression... there's nothing wrong with making a one-sprite-one-script game. Yes, it can have some side effects, but people do it for the challenge.

Well I tried to give equal points. I guess the advanced scripting is not that bad.

But the dragging and placing could get very sticky...
And yes, as long as you have the knowledge, it's all right.

Agh! I'll say I'm half-and-half.  wink


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#11 2009-10-23 01:42:08

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Why make a 1-sprite 1-script game? Pros and Cons

You can fix script lag by breaking up your one script and working on it in pieces. I have made a one sprite one script project, but not a game. It's my pie chart maker.


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#12 2009-10-24 11:17:04

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

Re: Why make a 1-sprite 1-script game? Pros and Cons

greenflash wrote:

You can fix script lag by breaking up your one script and working on it in pieces. I have made a one sprite one script project, but not a game. It's my pie chart maker.

Yeah. But again its not ALWAYS possible. But yeah I use that too.


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

Offline

 

Board footer