How do I Make My Gun Follow My Player?

Get help using Construct 2

Post » Sat Jan 16, 2016 9:57 pm

My gun and my player are separate objects in a platformer game. What is the simplest way to make them follow each other
B
3
Posts: 5
Reputation: 187

Post » Sat Jan 16, 2016 10:37 pm

The pin-behavior.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Sat Jan 16, 2016 10:40 pm

I have tried that, but had no luck with it. Can you show me a demo, or are there other ways to do it?
B
3
Posts: 5
Reputation: 187

Post » Sat Jan 16, 2016 10:45 pm

Did you know that there are example projects that come with Construct 2 that show how these behaviors work? Have a look.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Sat Jan 16, 2016 10:51 pm

Do you know which one is the best to demonstrate it? Thanks for the assistance.
B
3
Posts: 5
Reputation: 187

Post » Sat Jan 16, 2016 11:05 pm

Everyone on this forum is here to HELP you not do your work FOR you.
B
14
S
1
Posts: 65
Reputation: 732

Post » Sun Jan 17, 2016 5:02 am

The demos for the top down shooter show it, u may wanna give them a look. But pretty much the pin behavior is whats used for such thing. Just make sure the pin behavior is on the gun, not the player. And that u create an image point for the gun to pin to
B
32
S
14
G
4
Posts: 172
Reputation: 4,008

Post » Sun Jan 17, 2016 9:03 am

I'm sorry Edward, I'll ask less of the people here next time.
B
3
Posts: 5
Reputation: 187

Post » Sun Jan 17, 2016 9:05 am

Thank you arcab and mindfaQ, the top down shooter with rain demonstrates it quite clearly. The error was there because I used "every tick" and not "on start of layout". Again thank you, so, so much.
B
3
Posts: 5
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: HenryPK, NadeemAbbass, plinkie and 10 guests