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

#1 2012-02-22 16:06:05

brian_o
Scratcher
Registered: 2011-07-27
Posts: 100+

Minecraft 2D Alpha 0.4

Hey, people of scratch I need some help making an update for my Minecraft  2D, Can you tell me how to make scripts for the pig and make it possible to destroy blocks but then show up in the inventory. And the ability to craft and pause the game while crafting.


http://i50.tinypic.com/2i9grw5.png

Offline

 

#2 2012-08-22 10:04:05

Spyderblade
Scratcher
Registered: 2012-07-13
Posts: 100+

Re: Minecraft 2D Alpha 0.4

when gf clicked
set [pig gravity v] to (0)
repeat until <(pig dead?) = [yes]>
 wait (pick random (3) to (20)) secs
 set [pig gravity v] to (10)
 repeat until <touching block v ?>
  change [pig gravity v] by (-1)
  wait [0.01] secs 
 end
end
This is for a randomly jumping pig. BRB for next script!  big_smile

Last edited by Spyderblade (2012-08-22 10:24:39)


http://i48.tinypic.com/2pzbc5x.jpg
Am I online? http://blocks.scratchr.org/API.php?user=Spyderblade&amp;action=onlineStatus&amp;type=circle And, check out my Challenge Mission 2!!

Offline

 

#3 2012-08-22 10:22:19

Spyderblade
Scratcher
Registered: 2012-07-13
Posts: 100+

Re: Minecraft 2D Alpha 0.4

when gf clicked
repeat until <(pig dead?) = [yes]>
 change y by (pig gravity)
end
this one goes on your pig. Ummm, I'm not sure I can help you on the inventory idea, except that you need a list. Sorry!

P. S. Check out other peoples' projects that are similar to yours. Figure out how they dealt with the same problem.

Last edited by Spyderblade (2012-08-22 10:30:40)


http://i48.tinypic.com/2pzbc5x.jpg
Am I online? http://blocks.scratchr.org/API.php?user=Spyderblade&amp;action=onlineStatus&amp;type=circle And, check out my Challenge Mission 2!!

Offline

 

Board footer