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

#1 2010-07-19 15:05:05

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

Proper tile support

This could be pretty useful in a lot of cases. A lot of game creation tools like playcrafter, gamemaker, and stencyl have tile functionality as their main feature.

I think this is one of those things that would be nice to have to allow beginners to make better projects but not essential if the updates in v2 allow for manually created tiles.


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

 

#2 2010-07-19 15:18:46

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

what do you mean by tiles?

Offline

 

#3 2010-07-19 15:24:02

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

Re: Proper tile support

Ok, you may not be aware but most 2d games are made up of many squares. You know how a lot of the area in super mario games looks similar? Thats because it isn't drawn as a whole, the programmers stamp many squares to make up the game's landscape. Try any other game creation program and you will see that it lets you built the game by drawing a map of small squares called tiles.


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

 

#4 2010-07-19 15:25:34

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

ok yep
but can't you create a "tile" and use the stamp feature?
using lists or something to work out the location's?

Last edited by cruelty247 (2010-07-19 15:26:03)

Offline

 

#5 2010-07-19 15:29:10

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

Re: Proper tile support

Yes, you can manually create tiles with a stamp feature, but you can't scroll them, and collisions with stamped tiles is usually too hard for beginners.


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

 

#6 2010-07-19 15:33:57

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

come on mario being made probably wasn't simple!
why would anybody want tiles as apposed to the already very easy scrolling techniques?
i mean i know tiles look nice but you could when making the background for scrolling import a "tile" and stamp it to make the background and scroll that?surely

Why want this on scratch
of all programming languages......

Last edited by cruelty247 (2010-07-19 15:35:50)

Offline

 

#7 2010-07-19 15:55:37

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

Re: Proper tile support

I don't think you understand the utility of this feature.

One main use of tiles is that the data for each tile picture is very small as opposed to drawn maps. This is the reason the original mario games were only a few kilobytes. Having tiles would allow scratch to make a perfect mario clone among other games.

Also you say that a one would be able to stamp the tiles effectively but this is not so. Tile maps are made of 100+ tiles so stamping 100+ tiles every time the map scrolls is not going to work.


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

 

#8 2010-07-19 16:09:32

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

ok yep cool
i just think scratch is fine without it
but it would be a cool feature.

Offline

 

#9 2010-07-19 16:13:04

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Proper tile support

Wouldn't Scratch loose it's broadness it has now?

Yes, you can create games with it but it's not necessarily a game creator.
How would you do something like this in Scratch?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#10 2010-07-19 16:15:24

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Proper tile support

I support. Couldn't this also be used for enemies?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#11 2010-07-19 16:35:34

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

Re: Proper tile support

JSO wrote:

Wouldn't Scratch loose it's broadness it has now?

Yes, you can create games with it but it's not necessarily a game creator.
How would you do something like this in Scratch?

I suppose having tiles is more specialized than most scratch features, but it would allow for easier creation of certain projects which I don't think makes the program worse. I think it could work by having a special sprite called a tile map which lets you add tiles and build a map, or something like that. There are tons of examples you can use for such a feature.


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

 

#12 2010-07-19 22:08:19

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Proper tile support

I'm trying to make a game based of tiles like this... except it's forty by forty tiles, not whatever you're thinking of.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#13 2010-07-20 01:20:09

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Proper tile support

Putting tiles would make Scratch seem more of a game designer to me... no, Scratch is not a game designer (contrary to what plenty of people think), it's a tool designed to teach programming basics.  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#14 2010-07-20 02:43:37

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

Re: Proper tile support

Scratch is many things including a game designer. A no scrolling tile map can be made with difficulty in Scratch so why not simplify things? I wouldn't be opposed if they added in features specifically to make animation easier so why not make game development a bit easier as well?

Last edited by archmage (2010-07-20 02:44:47)


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

 

#15 2010-07-20 03:48:56

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

archmage wrote:

Yes, you can manually create tiles with a stamp feature, but you can't scroll them, and collisions with stamped tiles is usually too hard for beginners.

you can scroll them
see this script:
<when green flag clicked>
<set{done  }to( 1
<forever>
<repeat until><( done(variable) <=>lentgh of positions (list) )>
<go to x((   sad  item <{ done }> )<+> scrollx(variable) ))y sad ( (( <{ done }> <+>1  ))> <+>scrolly( variable)  ))
<change{done  }by( 2          ^
----------------------------------------I
then an if clause in there too see if the item(+ scrollx/scrolly) is on screen!

Last edited by cruelty247 (2010-07-20 03:51:28)

Offline

 

#16 2010-07-20 03:52:36

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

making a mock up now

Offline

 

#17 2010-07-20 04:05:26

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Proper tile support

done mock up and even though it renders slow doesn't mean the collision won't work because you now every location in a list and in costume tab it tells length of "tile"

Offline

 

#18 2010-07-20 13:35:26

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

Re: Proper tile support

The thing is, you can't make a game with that. Most tile based games have a least 100 tiles and your mockup has 12. Not to mention that it flickers a lot.

It is possible to make a scrolling tile grid with the needed 100+ tile sprites and a set of lists (simulating a multidimentional array) but I haven't been able to do so. Such a grid would also only work when downloaded.

A proper tile based map would be able to perfectly, clone the original mario game so if you ever happen to be able to do that let me know.


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

 

#19 2010-07-20 13:39:11

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

Re: Proper tile support

Ok archmage - I'll support your idea - as long as you make some kind of mockup and explain what additional specific features and/or blocks Scratch would need to make this possible.


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

Offline

 

#20 2010-07-20 13:51:29

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

Re: Proper tile support

I don't have the time to make a nice mockup with modified pictures of the scratch program but I can explain how I think it will work.

There would be a option to make a tile map. It would be similar to a sprite and other sprites would be able to sense it. Instead of having an art editor for it, you would have a grid editor that lets you put whatever tiles you want into the map. The map would have most of the same abilities as a normal sprite, it can move sense, change colour and other things.

This feature is pretty much solely good for creating games, so art lovers won't get much out of it. But a tile map is a very powerful tool, and is the key feature of many game creators.


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

 

#21 2010-07-20 22:05:56

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

Re: Proper tile support

Yay for tiles! Less file size!

Support. Maybe you could combine this with rhy's object group ideas...


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

 

#22 2010-07-21 00:04:13

boinoinoi
Scratcher
Registered: 2007-06-05
Posts: 500+

Re: Proper tile support

archmage wrote:

usually too hard for beginners.

This pretty much sums up what I think about the suggestion.

Barely anyone comes onto Scratch and immediately tries to code the most complex thing ever. A great approach to making a good program is to start small and continually add on blocks and change things as you learn.

Making a whole tile system would make Scratch seem like more of a sandbox for those specific type of games rather than the programming language that it is. Implementing a pre-done tile system puts bias on games of that sort.

If you really want one, make a base yourself (kind of like that platformer base I saw some months ago). After all, I thought you were like a star programmer...?


http://i30.tinypic.com/335fpxx.jpg
"Boinoinoi is the only person on the forums that I expect to be wearing a monocle all the time behind that screen, so I'm sure being as classy as he is, he knows what he's doing"        http://myfastcounter.com/count.php?c_style=88&amp;id=1284259111http://myfastcounter.com/count.php?c_style=88&amp;id=1286068127

Offline

 

#23 2010-07-21 02:22:10

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Proper tile support

Maybe if the tiles are a feature that you can turn on and off? If so, I support this idea.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#24 2010-07-21 03:19:47

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

Re: Proper tile support

Why turn it on and off when it'll still be there? To "turn it off" just don't use the blocks that relate to it... unless you're thinking about hiding that stuff as well?

How exactly would the tiles work? ^^ Like a sprite or something?


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

 

#25 2010-07-21 03:23:53

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Proper tile support

Like a grid that you can snap to. My one and only project involved tiles. I was mad that I didn't figure out sooner that Scratch has a proper size, and actual measures, so I was guessing at how big to make the tiles the first couple of times.

What blocks related to this? Where does it say that? I must've missed it.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

Board footer