Please help with my first Jigsaw puzzle game
franken2778
Member Posts: 54
Hi Guys,
I´m making a jigsaw puzzle game and I want to add the following functionality:
1- When a piece of the jigsaw is placed on the right position I want it to stuck in place so it cannot longer be movable.
2- The next piece is going to be created once the previous piece is placed in the right position
3- Once the jigsaw is completed the player will be directed to the next level (game has three levels)
4- I have a countdown for 20 seconds to finish each jigsaw, once timer goes to zero I need to display an animation of 2 images (two pieces getting together stating that player ran out of time)
Well, I have some ideas about how to develop my game but I’m pretty new to game salad, what would be the best way to do it? I’m thinking about making an invisible actor for each piece (I mean to put a piece on the right position and other piece will stuck to it once it is put in the right place) but I need direction on how to do that, I know probably I’ m asking too much information but guys I really need your help with the topics I mentioned before, I’ll really appreciate if you take the time to give me some ideas to complete the four steps previously mentioned
I´m making a jigsaw puzzle game and I want to add the following functionality:
1- When a piece of the jigsaw is placed on the right position I want it to stuck in place so it cannot longer be movable.
2- The next piece is going to be created once the previous piece is placed in the right position
3- Once the jigsaw is completed the player will be directed to the next level (game has three levels)
4- I have a countdown for 20 seconds to finish each jigsaw, once timer goes to zero I need to display an animation of 2 images (two pieces getting together stating that player ran out of time)
Well, I have some ideas about how to develop my game but I’m pretty new to game salad, what would be the best way to do it? I’m thinking about making an invisible actor for each piece (I mean to put a piece on the right position and other piece will stuck to it once it is put in the right place) but I need direction on how to do that, I know probably I’ m asking too much information but guys I really need your help with the topics I mentioned before, I’ll really appreciate if you take the time to give me some ideas to complete the four steps previously mentioned
Comments
Position x=170.9688
Position y=621.7305
Question, the attribute self.distance is a self attribute for my piece right? if so could you please let me know if this would be the right rule:
if self.distance is greater then magnitude(self.position.x-game.170.9688.x,self.position.Y-game.621.7305.Y)
interpolate self.positionX to 170.9688.X
interpolate self.positionY to 621.7305.y
I really appreciate it man!
self.distance to spot is less than 600 the I interpolate the piece and everything works great, the problem is with 2nd piece, I do exactly the same but it goes to respective spot regardless of the place I released it, lets say I'm not even close to the spot and release the piece and it then moves to the spot.
I try to put it to self.distance to spot is less than 40 but it does not work, happens the same the piece goes to the spot even if it is far away from it. Please help!
Do you think my problem could be that I'm not using the function to return my piece to start position? I do not need that so I'm not using the function on your template which declares that if distance from spot is >than 40 the return to Self. Start.X (if NOT close to the right spot), I don't know if that could be the reason why things do not work, pieces goes to the right spot even if touch is released far away.
I made it! I took a really good rest (slept for about 6 hours, something I haven't been able to do for the last 2 weeks) and started seeing things clearly, thank you guys for your support and patience, this is by far the best community I've ever visited. You are simply great, all of you, all those who take the time to read the threads and bring help to others. Long life to Gamesalad's Forums, developers, sous chefs, members!
I got TSB template for jigsaws and have been tweaking it for a master's research
project that is due in a week, but I can't get it to work quite right.
I've triple checked all the settings between the template project and mine
to make sure that I'm not missing something simple. The issue I'm having
with my test project is when I take the draggable piece to put it over the
outline it won't lock down on the outline. Since it is a test, I'm just
using one puzzle piece of a frog both are sized at 512 x 512. At this
point, the sizing is the only thing I can think of that would be causing
the issue. So my big question is how did you set up the interpolation in
the fulloutline actor (i.e. what are the numbers representing).