How do I Pin Object In the Layout Editor (not event sheet)

Get help using Construct 2

Post » Tue Oct 20, 2015 6:54 pm

Hello;

I am in the Layout editor and I want to pin the hat on my sprite. I know the uid of the sprite, and the Hat has the Pin behavior. Is there a way in the layout editor to pin it to the sprite, or does this have to be done in code in the event sheet for the layout (say in the system condition "start of layout").

I can see the pin folder has stuff in the edittime.js but this all seems to have to do with the event sheet, not the layout.

thanks for your time
winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Tue Oct 20, 2015 8:37 pm

Please forgive me if I am wrong, I have crappy english.

I think what you want is an Anchor: https://www.scirra.com/manual/88/anchor
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Tue Oct 20, 2015 11:20 pm

From the Manual on pin behaviour:

Simply adding the Pin behavior to an object does not do anything. You must use the Pin action to pin the object to another object.

So yes, you need an action in the event-sheet..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Oct 21, 2015 1:05 pm

Thanks LittleStain;

I was afraid that was true, if I could just enter the pinned to UID in the properties area of PIN all would be well.

and thankyou jojoe, but I am not looking at anchor.

Thanks for your time.
yours
Winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Wed Oct 21, 2015 5:24 pm

Haha! i thought you where trying to pin somehting to the layout layer. I re-read your post, and now it makes sense. Glad you found a solution. @LittleStain is a nice guy, he helps lots of people.

I wish I could have better reading comprehension, my English is really bad. Nice that you guys don't make fun of me. Sometimes I just totally miss things.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests