Need Help With Odd Barrier to Physics

Discussion and feedback on Construct 2

Post » Tue Jun 18, 2013 9:59 pm

So I decided to make a little cannon game to experiment with the physics side of C2. Unfortunately, there is an odd little barrier that appears when the player sprite is launched out of the cannon, and I cannot figure out why.

I've uploaded my capx file, since I can't really provide a good explanation of it, but I hope it's just a simple and stupid error on my part because I'm stumped.

Link: http://www.mediafire.com/download/dsev3jt82cqx8l8/Cannon_Game.capx

Edit: here is an image that may help. This is around where the odd barrier is. It extends up until about the top of the layout:
DatapawWolf2013-06-18 22:05:39
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Tue Jun 18, 2013 10:56 pm

When you spawn that block at (0,0) it's there briefly before you resize and move it and it seems the player is colliding with it.

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Tue Jun 18, 2013 11:43 pm

Ah! Thank you! I knew it was some sort of stupid mistake.

What I decided to do was change the code that placed the block at 0,0 and simply make it go ahead and create it next to the last block, trimming the actions by 1.DatapawWolf2013-06-19 01:25:33
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826


Return to Construct 2 General

Who is online

Users browsing this forum: digitalsoapbox and 13 guests