Pin behaviour is not working

Get help using Construct 2

Post » Thu Mar 13, 2014 2:05 pm

Hi there,

I'm new to Construct and I've been trying to make a puzzle game with it. The object of the game is to connect different pipes together from one end of the screen to the other so that a slime creature can cross safely. I put a drag and drop behavior on the pipe pieces as well as a pin behavior. I was able to get the pipes to pin together successfully. I also put a platform behavior on the slime creature with a simulate moving left action with every tick. That seems to work fine.

But, I'm having a problem with the pieces I'm trying to use as platforms for the creature to move on. They don't seem to want to pin to the pipes. I've tried several things but nothing seems to work right now.

Here is my file:
https://www.dropbox.com/s/6tgn9l4wfsx04s0/SlimeGame6.capx

In this iteration I only made a couple of platforms and kept them visible to see if they would work. My previous iterations do have platforms on all of the pieces, but I didn't want to make the screen too messy when troubleshooting.

I really want my game to be functional. Could I please get some help?

Thank you.
B
2
Posts: 2
Reputation: 154

Post » Thu Mar 13, 2014 4:31 pm

The pin behavior will not set the platform to the pipe's position and angle, it will only keep it there if you move or rotate the pipe. Consider using Set position to another object on the platform to set it to an image location on the pipe, and then you need to set the angle to the pipe's angle.

You might want to place a pipe in a container with the platform. So that any time the pipe is created or destroyed the corresponding platform will also be created or destroyed. (Select the pipe in the projects panel, and then in the properties panel under Container click on create. In the window that pops up select the platform.)

You might want to consider placing all of your pipes in a family. That way any behaviors, actions, etc... can be applied to the family as a whole. You can still apply things uniquely to elements of a family when needed.

You might want to consider reducing some of your file sizes. You make nice artwork, but I think things will become unruly as you add more layouts.

Have you thought about how you are going to have Slimy go up a pipe? Or decide to go up a pipe at a T intersection? (Look out, here comes another you might) You might want to think about these things before you go too far down your current path.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Thu Mar 13, 2014 10:02 pm

It worked! Thank you so much! The platforms are now attached to the various tiles.
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, ditocruz, RalleRoyal and 34 guests