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

#1 2012-10-10 10:25:24

8Bits
Scratcher
Registered: 2012-05-26
Posts: 16

Minecraft help

How do you get the mouse to be "choppy" so when you place a block, it will go exactly on top of the one beneath it?

Please help!


http://scratch.mit.edu/static/projects/8Bits/2567025_sm.png
The Jungle Game!      "...the graphics...they are amazing" SlipGrippz                            "Yea, its really good." WilliamEPJ                                                                                 36 views, 3 love-its, and 12 downloads

Offline

 

#2 2012-10-10 10:36:44

8Bits
Scratcher
Registered: 2012-05-26
Posts: 16

Re: Minecraft help

smile


http://scratch.mit.edu/static/projects/8Bits/2567025_sm.png
The Jungle Game!      "...the graphics...they are amazing" SlipGrippz                            "Yea, its really good." WilliamEPJ                                                                                 36 views, 3 love-its, and 12 downloads

Offline

 

#3 2012-10-10 10:50:32

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Minecraft help

You need rounding:

(([floor v] of ((mouse x)/(width))) * (width))
(([floor v] of ((mouse y)/(height))) * (height))
should work.

Last edited by Hardmath123 (2012-10-10 10:51:27)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4 2012-10-10 11:41:29

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: Minecraft help

From my understanding, you need to do what Hardmath said in every block sprite? Isn't that correct?  smile


yes, yes i do.

Offline

 

#5 2012-10-10 11:47:35

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: Minecraft help

Hardmath123 wrote:

You need rounding:

(([floor v] of ((mouse x)/(width))) * (width))
(([floor v] of ((mouse y)/(height))) * (height))
should work.

Hardmath, the floor blocks don't exist.  tongue
Use the round block instead:

((round ((mouse x)/(width))) * (width))
((round ((mouse y)/(height))) * (height))

Offline

 

#6 2012-10-10 12:07:43

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Minecraft help

Oops, they do in Scratch 2.0. I'm playing too much with the Alpha prototype.  tongue


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#7 2012-10-10 17:17:57

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: Minecraft help

Well, oops.  tongue


yes, yes i do.

Offline

 

Board footer