sm63rox456 wrote:Thanks, Suyo, this tutorial really helped. One question though, would it be possible to make it so that when you hit a switch, a block moves up, moves back down to where it was, and then stops moving until you hit the switch again?
Yes, this is possible! First, go to the second tab of the block item and set the movement of the block so that it moves up and down indefinitely. Then, set the block to "switch activated". Create a switch with a program that looks something like Activate block, Wait x, Turn Off block, Turn On this. You may have to experiment with the Wait length to get it right.
Here's an example:
- Code: Select all
150x50~0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*2J*49*2K2J*49*2K0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*0*47*2K*3*~1,112,1432,0,0,r|3:block,256,1504,2,2,101.101.101.101,2,64,16,0,0,0,0,-,1,5,64,64,0,0,0,u,0.2,999,c,1,1,0.2|5,152,1471,activate:block:wait:0;128;this:turnoff:block:turnon:this,1,1~0*7500*~~My%20Level~1~1,1~0~