Discuss Scratch

OvsWorm
Scratcher
21 posts

How can I make a tile based scrolling?

I've been on Scratch for more than 2 years on my first account, but I still have trouble making a functional game. The game I am working on right now is a side scrolling, survival, and sandbox game similar to Terraria. I know how to make it using clones but there is a clone limit and I can only seem to get one chunk in the game. I want to make it using stamps but I'm not sure how to make the stamps interact-able. Can anyone show me some projects or something that has simple enough code for to understand?
imfh
Scratcher
1000+ posts

How can I make a tile based scrolling?

It's possible to detect where the mouse is on a grid like so:

set [gridX v] to (round ((mouse x) / (16))) // 16 is the width of a tile
set [gridY v] to (round ((mouse y) / (16)))

That could help you making it interact-able.
OvsWorm
Scratcher
21 posts

How can I make a tile based scrolling?

I mean I already knew that, I'm just wondering how to use pen stamps for tile based scrolling
PinkTabbyHunterLargo
Scratcher
100+ posts

How can I make a tile based scrolling?

yeah, i don't know about tile-based scrolling. I used one of my pen systems (that can render dots on a scrolling map using lists) to try to render a ~50,000-200,000 item list (i know it's kinda a bad idea) but it lagged a lot. That was only tile rendering, so idk about interaction, but don't make it too big.
StrangeMagic32
Scratcher
1000+ posts

How can I make a tile based scrolling?

Powered by DjangoBB