Pin a sprite to each family member

Get help using Construct 2

Post » Mon Oct 01, 2012 10:14 am

At run time I spawn a sprite1 on each image points of sprite2. I then want to pin the sprite1 to each instance of sprite2. Yet it seems like they are all pinning to only instance of sprite2. Have any ideas that will help?

updated*
https://dl.dropbox.com/u/38339554/HeadRoll.capxPython2012-10-03 00:26:16
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Tue Oct 02, 2012 10:00 am

I know it's kind of a weird game, but it still doesn't pin the dot to the object that's it's near. I've even tried not using a family and that didn't work.
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Tue Oct 02, 2012 10:06 am

I think you may need to save it as a .capx if you want us to view it, or include a .rar/.zip of the whole folder. This seems just to be the project file, without the things like Event Sheets and all the important things
Using R238 for all examples
B
59
S
17
G
6
Posts: 363
Reputation: 9,095

Post » Tue Oct 02, 2012 11:05 am

Thank you emoaeden. I thought I saved it as a single file but here is is and it's updated in the first post.
https://www.dropbox.com/s/gkc1f2mhvmmb7ki/HeadRoll.capx
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Tue Oct 02, 2012 11:10 am

Ummm.... hate to ask, but did you put this in your public folder on Dropbox? As I'm getting a 404 error when I try to access your demo.
Using R238 for all examples
B
59
S
17
G
6
Posts: 363
Reputation: 9,095

Post » Wed Oct 03, 2012 12:25 am

Dang it lol, no but I thought you didn't have to do that now, but I'll try.
Here it is in the public folder:
https://dl.dropbox.com/u/38339554/HeadRoll.capx
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Thu Oct 04, 2012 1:42 am

Alright so the only way I could get it to work is if I spawned in the object(the head/body parts) then pined the other object(the dot) to it.

https://dl.dropbox.com/u/38339554/HeadRollv2.capx
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Thu Oct 04, 2012 9:22 am

Just had a look at the HeadRollv2. Are you wanting to attach the body parts to the head upon intersect ?

If so, just enable the last command, if see how it looks now.

I did a bit of tidying up in this capx as well :-)

https://dl.dropbox.com/u/108799982/HeadRollv3.capx
Using R238 for all examples
B
59
S
17
G
6
Posts: 363
Reputation: 9,095

Post » Thu Oct 04, 2012 10:49 am

lol ty. What I want to do is have the points connect. Like drag the parts to the head and they'll connect at the points. Then eventually I'll get legs, arms and other body parts and have them connect.

Then I'm hoping to be able to have it where you could walk with the physics. Though thinking about it now, that might not work because when the legs try to go past each other, they will get stuck. I'm talking about walking similar to the game qwop, but I want to have simpler controls.

Link to qwop:
http://www.foddy.net/Athletics.html

*edit*
One question. What are you trying to do with PPIP and BPIP?Python2012-10-04 12:10:07
B
16
S
4
G
1
Posts: 47
Reputation: 2,542

Post » Thu Oct 04, 2012 2:59 pm

THE PinPointImagePoint (PPIP) and BodyPointImagePoint (BPIP) are there so that you can reuse the same code, instead of having to have multiple copies of it, as you're just adding a Pin Point to the different Image points, which increment by 1 each time.

As for your QWOP clone, you would be able to achieve this by having it so when the head intersects body parts, it is replace with a new character. And just have it that you have to get an arm, leg, arm, leg, so you only have to have a few different cases.
Using R238 for all examples
B
59
S
17
G
6
Posts: 363
Reputation: 9,095

Next

Return to How do I....?

Who is online

Users browsing this forum: LaroTaio, Radulepy, tarek2, TiagoCesar and 20 guests