• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Blox

Scheduled Pinned Locked Moved SketchyPhysics
22 Posts 4 Posters 1.8k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sketchyKev
    last edited by 28 May 2011, 16:12

    To get the direct stiff movement that Mr K mentions, I think you will be better off creating the game as a ruby plugin for regular Sketchup rather than using SketchyPhysics. I am sure it can be done with some effort.

    1 Reply Last reply Reply Quote 0
    • M Offline
      Mr.K.1
      last edited by 28 May 2011, 16:30

      Added a simple script so you can see the problem with physics.


      amtlee3-simplescript.skp

      1 Reply Last reply Reply Quote 0
      • F Offline
        fransko
        last edited by 28 May 2011, 22:47

        @unknownuser said:

        Added a simple script so you can see the problem with physics.

        Thanks i work this out thanks again

        1 Reply Last reply Reply Quote 0
        • S Offline
          sketchyKev
          last edited by 29 May 2011, 08:04

          I (think) I have worked out how to implement this game in SketchyPhysics in a "rigid" way. Hopefully I will have time to do it in a couple of days, but if I hit technical problem I will post a Work In Progress anyway. I have a partly working model already. Hopefully Mr K, C.Phillips or some other scripting expert will be able to help out then πŸ˜‰

          1 Reply Last reply Reply Quote 0
          • F Offline
            fransko
            last edited by 29 May 2011, 15:47

            maybe I can do something with magnets??
            see attachment


            amtlee-simplescript 4.skp

            1 Reply Last reply Reply Quote 0
            • S Offline
              sketchyKev
              last edited by 31 May 2011, 18:43

              Here is my attempt to get the BLOX game to work in a rigid way. When you click on a tile adjacent to the big block it makes a supposedly) temporary joint connection between the block and the tile and rotates the block to the new tile. The only trouble is that the "disconnect joint" method as documented in the Wiki does not work as advertised.

              Perhaps Mr K or C.Phillips (or other expert) can tell me how to get the disconnect joint method to work. I have tried everything, but it has beaten me. πŸ‘Š 😞

              Anyway, to see what I have so far, click on any of the green tiles next to the block and it will rotate to that position in a "rigid" way.

              P.S. I tried with magnets, but that is not the way to go. It just refuses to behave nicely.


              bloxV0.2.skp

              1 Reply Last reply Reply Quote 0
              • S Offline
                sketchyKev
                last edited by 1 Jun 2011, 04:01

                Here is an alternative solution which is not bad, if you make gentle moves with the arrow keys. You can actually complete the puzzle with this one.

                I have an idea for an even more "rigid" solution which I will post in a few days as time allows.


                bloxV0.6.skp

                1 Reply Last reply Reply Quote 0
                • F Offline
                  fransko
                  last edited by 1 Jun 2011, 11:12

                  thank you for helping me so well
                  Here I had never come out
                  it is really a good idea
                  and thanks again

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sketchyKev
                    last edited by 2 Jun 2011, 03:55

                    This is my latest version. I have fine tuned the model and simplified the mechanics a fair bit. There are now no joints in the model. It works fairly well and I have included a real "mini puzzle" level that puts a message on the screen, if you get to the box at the end. 😍

                    BLOX.png

                    To see how it works, enable the physics joints layer and turn off layer 3.


                    bloxV0.7.skp

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mr.K.1
                      last edited by 2 Jun 2011, 13:12

                      I see what you did there, very neat system indeed.

                      You could add a timer so the box turns fully on every button press, that way it's far less likely to break the level.

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sketchyKev
                        last edited by 5 Jun 2011, 03:00

                        @unknownuser said:

                        You could add a timer so the box turns fully on every button press, that way it's far less likely to break the level.

                        I have now done that but movement was still a bit hit and miss so more was required. The latest version now includes the "idea" I mentioned in the earlier thread, to make the model more "rigid" but I had to learn a fair bit more about ruby scripting to actually implement the idea which involves using the teleport command. The model is now totally "rigid" with precise movement and hopefully it is impossible to break a level now (but someone always finds a way lol). The puzzle is now less about dexterity and more about puzzle solving.

                        Model now includes sounds. 😎

                        You can make your own puzzle level by turning on on the "hiddenBoundary" layer. Then all you have to do is move or copy the white tiles to where the block is allowed to go, and the red tiles to where the block is not allowed to go.

                        Check it out!


                        bloxV09c.skp

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          Mr.K.1
                          last edited by 5 Jun 2011, 07:45

                          Very nicely done, it is pretty much perfected gameplay so now people only need to build some extra levels.

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pilou
                            last edited by 5 Jun 2011, 10:06

                            Seems a sort of task! 😎

                            Frenchy Pilou
                            Is beautiful that please without concept!
                            My Little site :)

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fransko
                              last edited by 5 Jun 2011, 11:26

                              WHY IS THIS NOT POSSIBLE???


                              bloxV10c.skp

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                Mr.K.1
                                last edited by 5 Jun 2011, 11:57

                                Can't find what you broke, I say just copy paste your blocks into the original, should work fine then.

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  fransko
                                  last edited by 5 Jun 2011, 18:30

                                  I want to make the game so that the block through the hole into a different level is
                                  but I'm stuck

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sketchyKev
                                    last edited by 6 Jun 2011, 00:00

                                    @fransko said:

                                    I want to make the game so that the block through the hole into a different level is
                                    but I'm stuck

                                    I have fixed the problem with your last file. Some code got deleted along with the box that was originally at the end of the level. I have also added some extra code to teleport the box to the new level when you reach the end of the old level. There are some extra green "short cut" tiles on the maze to make testing easier and they can always be easily deleted. I have also added some comments to the ruby coding to make it easier to understand for anyone who might be interested.

                                    See attached, now with two levels!


                                    bloxV10d.skp

                                    1 Reply Last reply Reply Quote 0
                                    • F Offline
                                      fransko
                                      last edited by 9 Jun 2011, 00:40

                                      thats the second attachment


                                      blox1.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        fransko
                                        last edited by 12 Jun 2011, 23:09

                                        can someone help me with this difficult problem please?????
                                        see the 2 attachment

                                        Link Preview Image
                                        404

                                        Play thousands of free online games: arcade games, puzzle games, funny games, sports games, shooting games, and more, all without downloading any additional software! Find new free games to play every Thursday at Addicting Games!

                                        favicon

                                        Addicting Games (www.addictinggames.com)


                                        blox.jpg

                                        1 Reply Last reply Reply Quote 0
                                        • 1
                                        • 2
                                        • 1 / 2
                                        1 / 2
                                        • First post
                                          13/22
                                          Last post
                                        Buy SketchPlus
                                        Buy SUbD
                                        Buy WrapR
                                        Buy eBook
                                        Buy Modelur
                                        Buy Vertex Tools
                                        Buy SketchCuisine
                                        Buy FormFonts

                                        Advertisement