Create a free account to remove all ad content.

Author Topic:  Rubik's Cube  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

#

  • Member
  • *
  • Posts: 158
  • I don't do much here.
    • View Profile
  • Xbox: HellomeZodoz
Rubik's Cube
« on: January 31, 2016, 06:05:45 PM »
Hey guys, thought I'd show you something I made the other day. It's fairly simple, but I think it's pretty cool. It's a fully functional Rubik's cube. You control it by "Swiping" the rows/columns. Pretty straight forward so I'ma just jump into it and show you the video. (The poor quality may make it hard to distinguish between the orange and red):

Spoiler for Hidden Content:

I didn't do too well explaining the scrabble thing, but basically it just sets it up 15 moves away from being solved. I can change that as well to be any moves away from being solved so it can have varying difficulties. The Rubik's cube is nothing too crazy, but I thought I might as well post something on it :P. It took a bit too make since you can't have consecutive move block/region commands w/o them overwriting each other, so I had to store the face positions before rendering the new colors.

#ErnoRubik2k16
« Last Edit: January 31, 2016, 07:17:37 PM by Hashtag »

Dryym

  • Supreme Member
  • *
  • Posts: 4336
  • What's yours is mine. ~TM's Resident Master Thief~
    • View Profile
  • Xbox: dryym
Re: Rubik's Cube
« Reply #1 on: January 31, 2016, 07:06:23 PM »
Well, Everything else about this I can understand, And it seems like a bunch if rather simple scripts.

But I have to ask, How did you do the swiping action?

I'd imagine the scramble just makes 15 random turns to the cube itself, And you probably have it set up to a history counter as to easily change the amount of turns done.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

#

  • Member
  • *
  • Posts: 158
  • I don't do much here.
    • View Profile
  • Xbox: HellomeZodoz
Re: Rubik's Cube
« Reply #2 on: January 31, 2016, 07:24:47 PM »
Well, Everything else about this I can understand, And it seems like a bunch if rather simple scripts.

But I have to ask, How did you do the swiping action?

I'd imagine the scramble just makes 15 random turns to the cube itself, And you probably have it set up to a history counter as to easily change the amount of turns done.

The swiping is done with script blocks between the colors that store history and activate using Look at Range.

The scramble isn't done that way since it'd be too slow and messes up eventually if done in too fast of succession. You can see that in the video since the cube changes all at once fairly quickly.

Jesse

  • Extreme Member
  • *
  • Posts: 6450
  • Retired TM Youtuber (2013-2019)
    • View Profile
    • Old Channel
  • Xbox: YT Mysterio
  • PSN: YT_Mysterio
  • Steam: YT Mysterio
Re: Rubik's Cube
« Reply #3 on: February 01, 2016, 12:09:12 AM »
Nothing to insane. That is crazy but yet again i get amused by one block moving.


/mm Thanks GK for Sig /mm
/mm MotM September '14 /mm
/mm Robo February '15 /mm
/mm 4th Demi Gods December '16 /mm
/mm YouTube: Mythical Monkey /mm

Gary

  • Tester
  • Supreme Member
  • *
  • Posts: 2942
  • Steam: Conmaan ... ... Discord: Conmaan #9586
    • View Profile
Re: Rubik's Cube
« Reply #4 on: February 01, 2016, 12:26:35 AM »
Nice script! Really neat work here. Out of curiosity, approx how many lines of scripts did you use?


               

Link to my youtube channel:
https://www.youtube.com/channel/UCo4rmelSOUB9YMM0Is-zWyQ

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Rubik's Cube
« Reply #5 on: February 01, 2016, 12:51:06 AM »
##tagscriptsrock

#

  • Member
  • *
  • Posts: 158
  • I don't do much here.
    • View Profile
  • Xbox: HellomeZodoz
Re: Rubik's Cube
« Reply #6 on: February 01, 2016, 01:06:44 AM »
Nice script! Really neat work here. Out of curiosity, approx how many lines of scripts did you use?

I was pretty lazy with the rendering of the faces and didn't really feel like going with a bunch of conditionals, so I run a lot of copy blocks. I'd say about 40+ scripts with ~ 400 copy blocks (thank you replace text!) spread between them alone. About another 100 for the swiping and resets. Scramble is it's own 50. I bet if I did it right, I could've probably halved the amount needed for the faces.

##tagscriptsrock
8)

Gary

  • Tester
  • Supreme Member
  • *
  • Posts: 2942
  • Steam: Conmaan ... ... Discord: Conmaan #9586
    • View Profile
Re: Rubik's Cube
« Reply #7 on: February 01, 2016, 02:08:07 AM »
I was pretty lazy with the rendering of the faces and didn't really feel like going with a bunch of conditionals, so I run a lot of copy blocks. I'd say about 40+ scripts with ~ 400 copy blocks (thank you replace text!) spread between them alone. About another 100 for the swiping and resets. Scramble is it's own 50. I bet if I did it right, I could've probably halved the amount needed for the faces.
 8)

Jesus. That must've taken ages.


               

Link to my youtube channel:
https://www.youtube.com/channel/UCo4rmelSOUB9YMM0Is-zWyQ

#

  • Member
  • *
  • Posts: 158
  • I don't do much here.
    • View Profile
  • Xbox: HellomeZodoz
Re: Rubik's Cube
« Reply #8 on: February 01, 2016, 02:15:38 AM »
Jesus. That must've taken ages.

I probably only wrote around 100 lines by controller. The rest was done with replace text and offset. I think I only have like 30 hours on the world and a good bit of that is me away from my Xbox :P.

Steve

  • Elite Member
  • *
  • Posts: 947
    • View Profile
    • Total Miner Forums
  • Xbox: Derfen Steve
  • Steam: Derfen Steve
Re: Rubik's Cube
« Reply #9 on: February 01, 2016, 02:30:12 AM »
I probably only wrote around 100 lines by controller. The rest was done with replace text and offset. I think I only have like 30 hours on the world and a good bit of that is me away from my Xbox :P.

Very nice, I've seen some other impressive scripts done by you as well, It's nice people like you are showing others what can be accomplished with scripts. We need more of that. Kudos