Pulling objects

Get help using Construct 2

Post » Tue Feb 12, 2013 7:47 pm

Hello community. I make a Zelda-like game, but with some improvements. So the thing I'd love to know is:

How can I make my character drag the boxes? The thing is I've tried to use some thing from the forum, but they didn't really work. My game is top-down, I've made a pushing function, but have no idea on how to PULL objects. I've tried to make this:

- If player is on collision with box ->
- AND if I press Z:

Box pins to the player. But I can move in all the directions with this box being pinned, but I need to move only in 2 directions: if I dragged that from the left side player should be able to move it only in the left side. Same with right, up, down.

Thanks for attention and sorry for my English. PLEASE HELP ME <3
B
1
Posts: 4
Reputation: 233

Post » Tue Feb 12, 2013 8:12 pm

I made this example for someone a while back, it should cover most of what you mentioned and also make sure you can't crush yourself between two boxes.

Link: TopDownPushPull.capx
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Feb 12, 2013 11:10 pm

@Nimtrix: Thank you very much for sharing! Very good example.
B
44
S
10
G
5
Posts: 122
Reputation: 6,557

Post » Wed Feb 13, 2013 5:06 am

@Nimitrix:

Thanks a lot, it is not REALLY the thing I needed, but I like that "dragger" thing, so I will use it. Thanks!
B
1
Posts: 4
Reputation: 233

Post » Mon Mar 04, 2013 1:08 pm

...
B
4
Posts: 16
Reputation: 864


Return to How do I....?

Who is online

Users browsing this forum: badmoodtaylor and 13 guests