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

#1 2013-05-03 16:56:24

WabbaHarry
New Scratcher
Registered: 2012-11-06
Posts: 21

Scrolling Placing System

Hello
I was wondering if there was any way to create a scrolling system where you can place blocks and it remember where it is (Like terraria). In 1.4 i know it is not possible but in 2.0 you can use clones. Is there anyway to do this simply. I have seen other people do it but it was confined to a 2 by 5 area as it would crash there computer if they try to add more sections. Is there anyway to make this possible with a big map.

Offline

 

#2 2013-05-03 17:37:09

dracae
New Scratcher
Registered: 2013-04-05
Posts: 42

Re: Scrolling Placing System

I'm not sure if this'll work, but have you tried saving the position as a variable? Or using lists?

Offline

 

#3 2013-05-04 02:59:17

WabbaHarry
New Scratcher
Registered: 2012-11-06
Posts: 21

Re: Scrolling Placing System

I have the variables Scroll X (for scrolling) and Current X (for placing) howver i cant find a good script to get current X to change to be in the right place and will still scroll. I am trying to figure out a simpler scrolling system and then put that on. I have also found a way to set Current X but not to scroll it yet.

Offline

 

#4 2013-05-04 07:44:13

dracae
New Scratcher
Registered: 2013-04-05
Posts: 42

Re: Scrolling Placing System

Can you post what you have or something?
It'll be easier if I could see your scripts.  smile

Offline

 

#5 2013-05-04 07:52:58

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Scrolling Placing System

try this: for the player scripts,

when gf clicked
forever
 if <key [right arrow v] pressed?>
  change [scrollX v] by [-4]
 end
 if <key [left arrow v] pressed?>
  change [scrollX v] by [4]
 end
And for the terrains:
when gf clicked
forever
 set x to (((scrollX) + (480)) * (0))//change the zero by one on every different terrain.
Hope this helps!  big_smile


http://i39.tinypic.com/3309476.jpg

Offline

 

#6 2013-05-04 16:14:59

WabbaHarry
New Scratcher
Registered: 2012-11-06
Posts: 21

Re: Scrolling Placing System

Liamadams wrote:

try this: for the player scripts,

when gf clicked
forever
 if <key [right arrow v] pressed?>
  change [scrollX v] by [-4]
 end
 if <key [left arrow v] pressed?>
  change [scrollX v] by [4]
 end
And for the terrains:
when gf clicked
forever
 set x to (((scrollX) + (480)) * (0))//change the zero by one on every different terrain.
Hope this helps!  big_smile

I have that for the terrain but i was wondering how do you make it so you can place a 8x8 cube and it will scroll where it is placed. (Like Terraria/2D Minecraft)

Offline

 

#7 2013-05-04 16:18:10

WabbaHarry
New Scratcher
Registered: 2012-11-06
Posts: 21

Re: Scrolling Placing System

dracae wrote:

Can you post what you have or something?
It'll be easier if I could see your scripts.  smile

Wow the beta Site is really Bugging For me so i can't post a link to the project but if you look up "Starbound" in the beta.scratch.mit.edu search mine is the graphics scrolling one

Offline

 

#8 2013-05-05 06:30:31

WabbaHarry
New Scratcher
Registered: 2012-11-06
Posts: 21

Re: Scrolling Placing System

Link to the project here so you can look at scripts

http://beta.scratch.mit.edu/projects/10124360/

Offline

 

Board footer