Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Infinite Scrolling Terrain Help With Please
- keymaet
- Scratcher
19 posts
Infinite Scrolling Terrain Help With Please
I am working on an infinitely scrolling terrain generator using pen, not stamping a costume but drawing tiles (I only have 1 color now) with pen.
I know things like this have been made before, but I don't really understand them.
I just wanted some help on getting the scrolling part working.
This is what I have done so far:
https://scratch.mit.edu/projects/205698942/
I know things like this have been made before, but I don't really understand them.
I just wanted some help on getting the scrolling part working.
This is what I have done so far:
https://scratch.mit.edu/projects/205698942/
define ME
set [trait1 v] to [I'm not that good]
set [trait2 v] to [But I am trying!]
set [Computer Specs v] to [My browser / operating system: ChromeOS 10176.72.0, Chrome 64.0.3282.167, Flash 28.0 (release 0)]
- Quinzer
- Scratcher
28 posts
Infinite Scrolling Terrain Help With Please
I think this is a great idea and i LOVE that you got this to work, i reccomend making a grass layer next.
☑️ sᴇᴇ ᴛʜᴇ ᴄᴏᴏʟᴇsᴛ ᴘʀᴏᴊᴇᴄᴛ ʜᴇʀᴇ ☑️
Go check me out! ⚡⚡✏️ ☕ ⚽
I make these projects:
SCRATCHBLOX - inspired off of the popular game, Minecraft.
Explore a wild place in 3D! craft, build and forge your adventure! ⛺
Check it out HERE ❤️
SafeChat™ Is a safe online chatroom built within scratch that allows
you to chat with other users! ☁️ check it out HERE!!
I have TONS of cool projects **well, only 5**
Go check them ALL out ❗HERE❗
- keymaet
- Scratcher
19 posts
Infinite Scrolling Terrain Help With Please
Thank you! I think this is a great idea and i LOVE that you got this to work, i reccomend making a grass layer next.
define ME
set [trait1 v] to [I'm not that good]
set [trait2 v] to [But I am trying!]
set [Computer Specs v] to [My browser / operating system: ChromeOS 10176.72.0, Chrome 64.0.3282.167, Flash 28.0 (release 0)]
- Quinzer
- Scratcher
28 posts
Infinite Scrolling Terrain Help With Please
you'r welcome! go check out my projects!Thank you! I think this is a great idea and i LOVE that you got this to work, i reccomend making a grass layer next.
☑️ sᴇᴇ ᴛʜᴇ ᴄᴏᴏʟᴇsᴛ ᴘʀᴏᴊᴇᴄᴛ ʜᴇʀᴇ ☑️
Go check me out! ⚡⚡✏️ ☕ ⚽
I make these projects:
SCRATCHBLOX - inspired off of the popular game, Minecraft.
Explore a wild place in 3D! craft, build and forge your adventure! ⛺
Check it out HERE ❤️
SafeChat™ Is a safe online chatroom built within scratch that allows
you to chat with other users! ☁️ check it out HERE!!
I have TONS of cool projects **well, only 5**
Go check them ALL out ❗HERE❗
- keymaet
- Scratcher
19 posts
Infinite Scrolling Terrain Help With Please
Ok, but I actually just daw your 2D Minecraft project and I thought that it was cool!you'r welcome! go check out my projects!Thank you! I think this is a great idea and i LOVE that you got this to work, i reccomend making a grass layer next.
define ME
set [trait1 v] to [I'm not that good]
set [trait2 v] to [But I am trying!]
set [Computer Specs v] to [My browser / operating system: ChromeOS 10176.72.0, Chrome 64.0.3282.167, Flash 28.0 (release 0)]
- Quinzer
- Scratcher
28 posts
Infinite Scrolling Terrain Help With Please
You should check out this https://scratch.mit.edu/projects/205713211/ and follow!Ok, but I actually just daw your 2D Minecraft project and I thought that it was cool!you'r welcome! go check out my projects!Thank you! I think this is a great idea and i LOVE that you got this to work, i reccomend making a grass layer next.
☑️ sᴇᴇ ᴛʜᴇ ᴄᴏᴏʟᴇsᴛ ᴘʀᴏᴊᴇᴄᴛ ʜᴇʀᴇ ☑️
Go check me out! ⚡⚡✏️ ☕ ⚽
I make these projects:
SCRATCHBLOX - inspired off of the popular game, Minecraft.
Explore a wild place in 3D! craft, build and forge your adventure! ⛺
Check it out HERE ❤️
SafeChat™ Is a safe online chatroom built within scratch that allows
you to chat with other users! ☁️ check it out HERE!!
I have TONS of cool projects **well, only 5**
Go check them ALL out ❗HERE❗
- deck26
- Scratcher
1000+ posts
Infinite Scrolling Terrain Help With Please
Looks like it scrolls left OK but not right where it involves adding new columns. But since there's nothing in the right script to add new columns that shouldn't be surprising.
You really just need to know the index number for the current right-most on-screen column. If that is the last column and you try to move right you need to add new data. Either way you need to adjust the ‘right-most’ value whenever you move right or left UNLESS you move left by adding a new column since the right-most column then doesn't change, it just points to a different value.
You really just need to know the index number for the current right-most on-screen column. If that is the last column and you try to move right you need to add new data. Either way you need to adjust the ‘right-most’ value whenever you move right or left UNLESS you move left by adding a new column since the right-most column then doesn't change, it just points to a different value.
- ComplexCoder
- Scratcher
10 posts
Infinite Scrolling Terrain Help With Please
Very impressive to begin with! As @deck26 already said, you need to add more data to the ‘heights’ array when you move to the right.
Best of wishes!
ComplexCoder
Best of wishes!
ComplexCoder
- keymaet
- Scratcher
19 posts
Infinite Scrolling Terrain Help With Please
Ok, thank you! Looks like it scrolls left OK but not right where it involves adding new columns. But since there's nothing in the right script to add new columns that shouldn't be surprising.
You really just need to know the index number for the current right-most on-screen column. If that is the last column and you try to move right you need to add new data. Either way you need to adjust the ‘right-most’ value whenever you move right or left UNLESS you move left by adding a new column since the right-most column then doesn't change, it just points to a different value.
define ME
set [trait1 v] to [I'm not that good]
set [trait2 v] to [But I am trying!]
set [Computer Specs v] to [My browser / operating system: ChromeOS 10176.72.0, Chrome 64.0.3282.167, Flash 28.0 (release 0)]
- Discussion Forums
- » Help with Scripts
- » Infinite Scrolling Terrain Help With Please