Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » off screen terrain generation.
- Zizzle8383
- Scratcher
100+ posts
off screen terrain generation.
hi, i'm trying to make a Scroller with random terrain, i know how to make it on the stage but i want it to go off screen, to the next area. all my sprites are 34*34 sprites each= one block. i want to make underground terrain and terrain for the whole world.
Last edited by Zizzle8383 (Oct. 16, 2018 21:48:03)
Hyperbowls will live on!
It's Selltick, PPA.
- Sinaboo
- Scratcher
100+ posts
off screen terrain generation.
Probably doing something with x and y variables. (Set x and y variable for “this sprite only” when creating it) When I start as clone if arrow keys are pressed then change the x or y variable depending on the arrow pressed then in the same When I start as clone set x to (x), set y to (y)
Is your game from a side view or sky view? Like, if there was an imaginary camera.
set x to (x)
set y to (y)I've never actually done scrolling generation before.
Is your game from a side view or sky view? Like, if there was an imaginary camera.
- Sinaboo
- Scratcher
100+ posts
off screen terrain generation.
Yeah maybe try something with the x and y variables. I don't understand what you mean by 34*34 sprites each = 1 block. 1 block of coding or 1 block in the game? And what does the 34 represent?
- Zizzle8383
- Scratcher
100+ posts
off screen terrain generation.
34Pixels. Yeah maybe try something with the x and y variables. I don't understand what you mean by 34*34 sprites each = 1 block. 1 block of coding or 1 block in the game? And what does the 34 represent?
34 X 34 Y = one block of Terrain.
Hyperbowls will live on!
It's Selltick, PPA.
- Sinaboo
- Scratcher
100+ posts
off screen terrain generation.
Ok that makes more sense. Where would the camera be if there was one? I might be able to help if I know.34Pixels. Yeah maybe try something with the x and y variables. I don't understand what you mean by 34*34 sprites each = 1 block. 1 block of coding or 1 block in the game? And what does the 34 represent?
34 X 34 Y = one block of Terrain.
- Zizzle8383
- Scratcher
100+ posts
off screen terrain generation.
Ok that makes more sense. Where would the camera be if there was one? I might be able to help if I know.34Pixels. Yeah maybe try something with the x and y variables. I don't understand what you mean by 34*34 sprites each = 1 block. 1 block of coding or 1 block in the game? And what does the 34 represent?
34 X 34 Y = one block of Terrain.
top down camera.
Hyperbowls will live on!
It's Selltick, PPA.
- Discussion Forums
- » Help with Scripts
- » off screen terrain generation.