Container Not Working, Can't See Lines

Get help using Construct 2

Post » Wed Nov 11, 2015 3:38 am

https://www.dropbox.com/s/94zr7wuf61m3vmk/MusicGame%20Test%201.capx?dl=0

Not sure what happened when I originally tried to post this so I'm trying again.

I'm trying to use the "Container" property to attach "Arrow Lines" to my multiple "Arrow" objects with a Bullet behavior. For some reason, I can't see the "Arrow Lines" attached once I start the build. I checked in the Debug and the "Arrow Lines" are there and they are destroy once the "Arrow" objects are destroyed.

Still, I can't see the things and I need them to be visible so I can test my game mechanics. Any help would be appreciated.
B
197
S
110
G
7
Posts: 134
Reputation: 19,564

Post » Wed Nov 11, 2015 8:36 am

I have not gone through your code so this is a bit of of an assumption…

Containers will create all the necessary "things" in the container but they do not combine them together. I think you need to look at pinning your lines to the arrows. So you will have a line of code along the lines of

Create sprite : pin sprite2 to sprite
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Wed Nov 11, 2015 11:35 pm

Yup, that worked. I didn't think of combining those 2 things. It also fixed my original "Pin to Object" problem when the "Arrow Lines" actually detached from the "Arrow" objects once the 1st one was destroyed. Thanks for the suggestion.
B
197
S
110
G
7
Posts: 134
Reputation: 19,564


Return to How do I....?

Who is online

Users browsing this forum: bluesun66 and 7 guests