Stop Dragging Platformer Beyond Draggable Ground

Get help using Construct 2

Post » Sun Jul 14, 2013 3:22 am

This is kind of strange but I have a platform character standing on ground. You can drag the ground but it has end points so it won't let you drag across the entire screen. The only problem is that the platformer doesn't stop dragging once you reach the end points. It doesn't make a difference whether the ground is a solid or jump-through. I'm thinking it must have to do with how I'm creating the end points but I can't figure out any other way to do it. Thanks for the help.

Capx File
B
8
S
2
G
1
Posts: 12
Reputation: 1,349

Post » Sun Jul 14, 2013 7:19 am

I think you need more of a description and maybe explain what it is you want someone to do for you... the more info you give, the more we can help...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,538

Post » Sun Jul 14, 2013 9:16 am

The reason why your platformer is still moving is because you are actually still dragging the ground sprite, you are just resetting it just after.

If you do the drag and drop yourself you can limit the ground sprite.

I have made a small example, dont know if that is what you were looking for?
B
20
S
6
G
4
Posts: 347
Reputation: 4,441

Post » Sun Jul 14, 2013 3:44 pm

Yes, that's perfect thank you! For some reason I didn't consider rewriting the drag method.

@BluePhaze - Sorry I thought I was being clear. I was looking for a way to stop the character from being dragged by the ground below it when the ground had reached the boundary.
B
8
S
2
G
1
Posts: 12
Reputation: 1,349

Post » Mon Jul 15, 2013 7:45 am

Cool thanks! Hopefully this is resolved for you! Wasn't trying to be rude, it's just without a good description with steps to reproduce it can be hard to hunt down some things.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,538

Post » Mon Jul 15, 2013 2:23 pm

No, I totally understand. Sometimes I just have no idea how to word such a specific problem. This totally helped though, thanks guys!
B
8
S
2
G
1
Posts: 12
Reputation: 1,349


Return to How do I....?

Who is online

Users browsing this forum: AllanR, Cryttexx and 10 guests