Pushing Blocks?

For questions about using Classic.

Post » Wed Jul 22, 2009 11:05 pm

Hi, I'm sure it's pretty easy. But I have used many hours ripping my hear off, My eyebrows I'd like to keep.

I'm making a puzzle game. Where you have to push block to get you're treashure.
It's grid movement based. The block's should not be pushable if it collides with another block, or the wall.

Please help :oops:
B
7
G
4
Posts: 32
Reputation: 1,596

Post » Wed Jul 22, 2009 11:56 pm

To test for walls or other blocks, you could use "Is overlapping at offset" under the collisions section of the sprite's conditions.

EDIT 2: Here's the example I whipped up. I didn't have time to comment it, but it shouldn't be too hard to understand. It uses the grid behavior to make things easier.

Block Pushing Example
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Thu Jul 23, 2009 5:06 am

de made something similar for differnt purpose you might find useful but it is not grid movement http://dl.getdropbox.com/u/529356/pushingboxes.cap two brown boxes stop when overlap original post here viewtopic.php?f=3&t=3918&p=31129&hilit=push+out#p31158
B
2
S
2
G
4
Posts: 259
Reputation: 1,968

Post » Thu Jul 23, 2009 8:48 pm

Thank you both! Both examples helpes alot. Now I can continue on my little puzzler. With my eyebrows intact :D
B
7
G
4
Posts: 32
Reputation: 1,596


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests