Top down block pushing

Get help using Construct 2

Post » Sat Jun 22, 2013 10:32 pm

I'm trying to create a top down puzzle game, and one of the objects is supposed to be a block that the player can push.

This block has to block movement, and be pushed at the player's maxspeed until it hits something it cannot move through

I have tried many different ways but nothing really works. What's causing most of the issue is the player, upon collision, stops movement. Well that and a few other issues.


So for a top down puzzle game with a pushable block, do you have any ideas how I could impliment it?
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Sat Jun 22, 2013 10:43 pm

I had this old example lying around, should cover pretty much all you need:

TopDownPushPull.capxNimtrix2013-06-22 22:43:37
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jun 23, 2013 3:29 am

Hmm, seems so much smoother in yours, but you are also dealing with larger objects and slower speeds.

Well I got it using manual input. I really wanted it to know when the player is moving and not obstruct the player so I didn't have to code "If "Down" is down" and such. Guess making a small resolution retro style game is a bit difficult in C2 atm :P.

Well it works for now, thanks for the help :3Thndr2013-06-23 03:32:46
B
21
S
8
G
6
Posts: 346
Reputation: 4,891


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 62 guests