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

#1 2012-08-15 12:44:32

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Isometric Grid-Locking

Yeah.  How do I do it?


http://i47.tinypic.com/2iaa73k.png

Offline

 

#2 2012-08-15 13:55:33

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Isometric Grid-Locking

For a simple version, its just X: 6*round(mousex/6), same for Y. Not sure for a more complicated version though.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#3 2012-08-15 13:56:39

Sonic_The_Werehog
Scratcher
Registered: 2012-08-04
Posts: 12

Re: Isometric Grid-Locking

Molybdenum wrote:

For a simple version, its just X: 6*round(mousex/6), same for Y. Not sure for a more complicated version though.

I heard something about it on the wiki.  hmm  (soniku3's alt!)  big_smile

Offline

 

#4 2012-08-15 13:56:56

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Isometric Grid-Locking

this is an isometric builder with a snap-to grid which is VERY unique because it also allows multiple sized buildings and not only detects whether you stamped one tile but also any tiles surrounding it and allows you to build in more than 1 area instead of having a fixed region Please ask any questions!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#5 2012-08-15 13:57:23

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Isometric Grid-Locking

Molybdenum wrote:

For a simple version, its just X: 6*round(mousex/6), same for Y. Not sure for a more complicated version though.

That's normal grid-locking.


http://i50.tinypic.com/312u714.jpg

Offline

 

#6 2012-08-15 14:01:47

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Isometric Grid-Locking

BirdByte wrote:

Molybdenum wrote:

For a simple version, its just X: 6*round(mousex/6), same for Y. Not sure for a more complicated version though.

That's normal grid-locking.

Which also works for simple iso-locking. Let me upload that project...
EDIT: Here it is: http://scratch.mit.edu/projects/Molybdenum/2731329

Last edited by Molybdenum (2012-08-15 14:08:04)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#7 2012-08-15 14:42:49

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Isometric Grid-Locking

Borrego6165 wrote:

this is an isometric builder with a snap-to grid which is VERY unique because it also allows multiple sized buildings and not only detects whether you stamped one tile but also any tiles surrounding it and allows you to build in more than 1 area instead of having a fixed region Please ask any questions!

hello? here's an epic example!!!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#8 2012-08-15 15:02:40

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Isometric Grid-Locking

Borrego6165 wrote:

Borrego6165 wrote:

this is an isometric builder with a snap-to grid which is VERY unique because it also allows multiple sized buildings and not only detects whether you stamped one tile but also any tiles surrounding it and allows you to build in more than 1 area instead of having a fixed region Please ask any questions!

hello? here's an epic example!!!

You do realize that's sort-of advertising? And I don't think berberberber is on right now.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#9 2012-08-15 15:13:46

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Isometric Grid-Locking

Molybdenum wrote:

Borrego6165 wrote:

Borrego6165 wrote:

this is an isometric builder with a snap-to grid which is VERY unique because it also allows multiple sized buildings and not only detects whether you stamped one tile but also any tiles surrounding it and allows you to build in more than 1 area instead of having a fixed region Please ask any questions!

hello? here's an epic example!!!

You do realize that's sort-of advertising? And I don't think berberberber is on right now.

you showed him yours and it did not snap to a grid so it didn't work! mine does work and it's a great example, it's relevent and not against the rules. no hard feelings

well, it doesn't snap properly to the correct number of pixels

Last edited by Borrego6165 (2012-08-15 15:14:43)


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#10 2012-08-15 15:24:59

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Isometric Grid-Locking

Borrego6165 wrote:

Molybdenum wrote:

Borrego6165 wrote:

hello? here's an epic example!!!

You do realize that's sort-of advertising? And I don't think berberberber is on right now.

you showed him yours and it did not snap to a grid so it didn't work! mine does work and it's a great example, it's relevent and not against the rules. no hard feelings

well, it doesn't snap properly to the correct number of pixels

Well, it looks a bit like advertising.

And... My example snaps perfectly to a grid. Its just there aren't any gridlines (those 2 are different, even if by just a bit). If you are saying that it goes halfway sometimes, well, its supposed to. Try building up.

EDIT: Oh lookie! Your script uses exactly the same as mine. Mine is 3D, so the halfway up "glitch" is needed. Yours?

Last edited by Molybdenum (2012-08-15 15:29:46)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#11 2012-08-15 15:33:30

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Isometric Grid-Locking

Molybdenum wrote:

Borrego6165 wrote:

Molybdenum wrote:


You do realize that's sort-of advertising? And I don't think berberberber is on right now.

you showed him yours and it did not snap to a grid so it didn't work! mine does work and it's a great example, it's relevent and not against the rules. no hard feelings

well, it doesn't snap properly to the correct number of pixels

Well, it looks a bit like advertising.

And... My example snaps perfectly to a grid. Its just there aren't any gridlines (those 2 are different, even if by just a bit). If you are saying that it goes halfway sometimes, well, its supposed to. Try building up.

EDIT: Oh lookie! Your script uses exactly the same as mine. Mine is 3D, so the halfway up "glitch" is needed. Yours?

on yours you can place blocks directly on top of each other, mine detects that they need to go on the sides, AND it allows multiple sized tiles so although it is not touching an area it detects that the whole area is covered. plus, yours allows on one screen worth, with mine you can scroll and see many areas of placed blocks which can be saved so DAYUM! anway you have one more post then I think we'd best stop


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#12 2012-08-15 15:51:30

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Isometric Grid-Locking

Paddle2See made an example project about this awhile ago... let me see if I can fish it out.  You'll have to expand on the script in order to make it lock; in the current version, it just finds the isometric coordinates.

EDIT: Found it:
http://scratch.mit.edu/projects/Paddle2SeeFixIt/2332741

Last edited by amcerbu (2012-08-15 15:53:18)

Offline

 

#13 2012-08-15 16:04:31

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Isometric Grid-Locking

Borrego6165 wrote:

Molybdenum wrote:

Borrego6165 wrote:

you showed him yours and it did not snap to a grid so it didn't work! mine does work and it's a great example, it's relevent and not against the rules. no hard feelings

well, it doesn't snap properly to the correct number of pixels

Well, it looks a bit like advertising.

And... My example snaps perfectly to a grid. Its just there aren't any gridlines (those 2 are different, even if by just a bit). If you are saying that it goes halfway sometimes, well, its supposed to. Try building up.

EDIT: Oh lookie! Your script uses exactly the same as mine. Mine is 3D, so the halfway up "glitch" is needed. Yours?

on yours you can place blocks directly on top of each other, mine detects that they need to go on the sides, AND it allows multiple sized tiles so although it is not touching an area it detects that the whole area is covered. plus, yours allows on one screen worth, with mine you can scroll and see many areas of placed blocks which can be saved so DAYUM! anway you have one more post then I think we'd best stop

The POINT of mine is to place blocks on top of each other, to make a 3D object.
And if you mean you can put blocks were blocks are already are, messing up the picture, I was working on a fix for that. Yours obviously doesn't have it because its 2D.

Last edited by Molybdenum (2012-08-15 16:16:18)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#14 2012-08-15 16:21:51

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Isometric Grid-Locking

Molybdenum wrote:

Borrego6165 wrote:

Molybdenum wrote:


Well, it looks a bit like advertising.

And... My example snaps perfectly to a grid. Its just there aren't any gridlines (those 2 are different, even if by just a bit). If you are saying that it goes halfway sometimes, well, its supposed to. Try building up.

EDIT: Oh lookie! Your script uses exactly the same as mine. Mine is 3D, so the halfway up "glitch" is needed. Yours?

on yours you can place blocks directly on top of each other, mine detects that they need to go on the sides, AND it allows multiple sized tiles so although it is not touching an area it detects that the whole area is covered. plus, yours allows on one screen worth, with mine you can scroll and see many areas of placed blocks which can be saved so DAYUM! anway you have one more post then I think we'd best stop

The POINT of mine is to place blocks on top of each other, to make a 3D object.
And if you mean you can put blocks were blocks are already are, messing up the picture, I was working on a fix for that. Yours obviously doesn't have it because its 2D.

it's 2.5D actually, and so's yours. cya


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#15 2012-08-15 16:23:12

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Isometric Grid-Locking

Borrego6165 wrote:

Molybdenum wrote:

Borrego6165 wrote:

on yours you can place blocks directly on top of each other, mine detects that they need to go on the sides, AND it allows multiple sized tiles so although it is not touching an area it detects that the whole area is covered. plus, yours allows on one screen worth, with mine you can scroll and see many areas of placed blocks which can be saved so DAYUM! anway you have one more post then I think we'd best stop

The POINT of mine is to place blocks on top of each other, to make a 3D object.
And if you mean you can put blocks were blocks are already are, messing up the picture, I was working on a fix for that. Yours obviously doesn't have it because its 2D.

it's 2.5D actually, and so's yours. cya

Um, no. Your map editor is 2D. Look, I think we should just stop right now.

PS. Even though I know both definitions (inaccurate and accurate) of 2.5D, here is real 2.5D:
http://upload.wikimedia.org/wikipedia/commons/2/2f/Quadratic_Koch_3D_%28type2_stage3%29.png

Last edited by Molybdenum (2012-08-15 16:25:23)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

Board footer