Home Unreal Engine

Kismet Picture Puzzle

Hey guys,

I'm hoping that someone here will be able to help me with this. I'm trying to create a rotating picture puzzle in kismet. What I mean by this is that I'm trying to create a sequence that will rotate a tile 90 degrees and then check if it is rotated to the right angle to complete a larger picture. I'm not even sure how I would begin to approach this since I'm not familiar with Kismet's more advanced functions, and I was hoping that one of you might be able to help me out.

Any aid would be greatly appreciated :).

Thanks Guys.

Replies

  • LightUrple
    If anyone has a minute I would really love to hear from you.
  • tharle
    Offline / Send Message
    tharle polycounter lvl 9
    are you trying to do this just within a material or with full mesh pieces that move? i know you can control material parameters with kismet so you should be able to just add each piece on top of each other in the material editor and control the rotation via kismet. if you do a bit of math and set it up so that if each piece is the correct way up it corresponds to a maximum rotation value of 1 say then for a 16 piece puzzle you'll know that the sum of your rotations will be 16, if that makes sense. then you can just trigger a full material swap and open a door or whatever. if you want full mesh pieces then i'm afraid i dont have enough kismet experience to help.

    hope that helps. let me know if i wasnt clear and i'll see if i can explain myself better.
  • LightUrple
    I'm grateful that I actually got a response from someone XD. So thank you :) Unfortunately, I am doing it the other way. I have 9 interp actor tiles that make up the picture. I really want to try and complete my method, but I would love to hear how your material method works as well. I'm not quite sure i completely understand how to go about using your way.

    As of right now I'm just trying to figure out how I can get one tile to rotate 90 degrees after every Trigger Use event. I have the matinee setup, but obviously if you hit the trigger again, the tile resets to its original location and then rotates that same 90 degree turn. I need the tile to continue to rotate 90 degrees after every time you trigger it.

    If you have a solution for that I would greatly appreciate it.
  • LightUrple
    Derp, just figured out that there was a "no reset on rewind" setting in a matinee. So now my next step is to get kismet to check if it is rotated to the right position. What would be the best way to go about tracking multiples of something? All pieces turn clockwise, so I'm thinking that I will need to track the amount of rotations is takes to get each piece into its correct position.

    The first piece is rotated 2 turns counter clockwise. So I'm guessing I need to track the amount of turns it takes to make it correct, and then Ding that piece every time you land on the correct rotation. But since the piece already starts in an offset or incorrect position (2 turns counter clockwise) it would only take 2 turns clock wise to make it correct. This poses a problem, because if the player doesn't think its correct and keeps rotating it, it would take 4 turns for the piece to be in the correct location again.

    I would love to hear from all you guys on how I can go about making the kismet for this sequence. I don't fully understand all the math functions yet, so I would love all the help I can get.


    Thanks again.
  • LightUrple
    Update:

    I now have the entire puzzle just about working. All the pieces indicate when they are on the correct rotation. You can spin them an infinite amount of times and they will always indicate when it is in the correct spot.

    I have booleans set up for each tile that toggle "true" once a piece is rotated correctly.

    Now I only need aid with one last step. I've been searching but have yet to find a kismet node that allows me to compare / check to see if multiple booleans = true, so that i can finally have the puzzle finish.

    If the node I need to use is a compare bool node, then I would love an explanation as to how that works with multiple booleans.

    Thanks in advance :)
Sign In or Register to comment.