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

#1 2013-03-19 16:38:38

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

How to make a Scroll Jump

Hello. I am making a 2D Minecraft but needed help with the script for when i jump instead of steve moving up the blocks move down. I thought it would be easy but it really isn't. Also if you can't tell what i mean it is when you jump and instead of the character moving everything around them moves.

Thanks

Offline

 

#2 2013-03-19 16:45:01

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

Re: How to make a Scroll Jump

Also the variables i have so far are

(Scroll Y)
(Scroll X)

Offline

 

#3 2013-03-19 17:09:02

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: How to make a Scroll Jump

Try something like
forever
if up arrow pressed
set scroll y to -15
end
if not touching steve
change scroll y by 1
end
change y by scroll y

Unfortunately you'll have to edit (probably to include broadcast)s so that if any block is touching steve then they all stop moving. The above was what you would use for a normal platformer if you wanted the character to stay in the middle of the screen. Hope that helps.

Offline

 

#4 2013-03-19 17:26:33

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

Re: How to make a Scroll Jump

sadly it didn't work. I tried adapting it but for some reason it just flew upwards i will try and figure it out though.

Offline

 

Board footer