How do I make a sprite ride onto another?

Get help using Construct 2

Post » Sat Feb 20, 2016 7:39 pm

I get as much as setting a position to an object, but the problem is that it makes the player object warp onto a different instance of that object rather than the closest (directly overlapping) thing.
B
8
S
1
Posts: 58
Reputation: 570

Post » Sat Feb 20, 2016 8:38 pm

Try using collission or overlap conditions to specify which instance is being picked specifically, then pin the player to the object.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Sat Feb 20, 2016 9:02 pm

oosyrag wrote:Try using collission or overlap conditions to specify which instance is being picked specifically, then pin the player to the object.

That worked! Now though I'm wondering; is there any way I can get the player object to connect from -where- it was when it started riding, rather than onto a set image point?
B
8
S
1
Posts: 58
Reputation: 570

Post » Sat Feb 20, 2016 9:18 pm

Yes that should be the simpler behavior actually - right when they overlap, pin player to object (suggest adding Trigger Once as well).

I made an example for someone else, for picking up an object. Not exactly what your situation, but you should be able to get the idea.

https://www.dropbox.com/s/gf5pnjr3jcrwr ... .capx?dl=0
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Sat Feb 20, 2016 9:57 pm

Message: Poxnixles can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
oosyrag wrote:Yes that should be the simpler behavior actually - right when they overlap, pin player to object (suggest adding Trigger Once as well).

I made an example for someone else, for picking up an object. Not exactly what your situation, but you should be able to get the idea.

https://www.dropbox.com/s/gf5pnjr3jcrwr ... .capx?dl=0

Seems to help a bit but I'm scratching my head at an inconsistency where the player doesn't want to follow the object's movements. It sticks to one position for a moment while overlapping only.
B
8
S
1
Posts: 58
Reputation: 570

Post » Sat Feb 20, 2016 10:04 pm

Is your player being unpinned by another event? Do you have any other events adjusting your player position? Pin should work even if objects aren't touching.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Sat Feb 20, 2016 11:00 pm

Ok, I've got it now! Thank you for the help!
B
8
S
1
Posts: 58
Reputation: 570


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], cb130felix, Kermad, Lancifer, piddlyPoo, yiuyiu6666 and 4 guests