Collision Polygon & Auto Crop

Just started using Construct 2? Post your questions here

Post » Thu Oct 06, 2016 6:19 pm

I have an animation stripe which had someone shooting a beam projectile out. The issue is when another character collides with this someone, it collide even from a distance when the beam projectile is not even out yet. When I check the animation stripe frame by frame, the collision polygon for the earlier frames are smaller and by theory they should not have collide from a distance. Any suggestion to make this work apart from separating the beam projectile and character from the animation stripe?

For some of the animation stripes that I have, some of those I have to find a common point throughout to set the origin point manually so that they will animate properly. However some stripes contain effect animation where I won't have any common point to pick out. How do I work around this?

Thanks and appreciate any inputs!
B
20
S
5
Posts: 13
Reputation: 1,176

Post » Fri Oct 07, 2016 2:31 pm

Tough to say without seeing your .capx
Can you post your .capx file using dropbox or other free download host
Your rep probably won't let you put a link in your post but you can get around this by using spaces in the link or taking out . to trick forum.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
66
S
17
G
8
Posts: 637
Reputation: 9,370

Post » Wed Oct 19, 2016 5:14 pm

try checking the master debug and click on the projectile in the object list you can see its polygon shape as it hit the target from there you can observe what is happening.

tell us what you see it may just be a scrolling issue or perhap you are spawning projectile infront of it instead of behind it,
B
52
S
24
G
6
Posts: 391
Reputation: 7,845

Post » Mon Dec 19, 2016 8:31 am

I have kind of work around (definitely not the best way) the collision polygon issue already but I still can't figure out the animation sprite solution. Surprisingly I can't find any tutorials or video that is remotely close to what I was working on. There's a high chance that I might be doing something wrong here. Would appreciate any advise or suggestions!

What should we do to ensure the correct animation for our imported sprites? I can't seem to get my animated sprite to animate like it should be because of the different size every frames. If I attempt to set the origin point to a common part that I can find in my sprite, it's similar but still off and I can't do this for all my sprites since some of them have effects over the character and that break the common part that I found initially.
B
20
S
5
Posts: 13
Reputation: 1,176

Post » Mon Dec 19, 2016 9:25 am

asdzxc wrote:I have kind of work around (definitely not the best way) the collision polygon issue already but I still can't figure out the animation sprite solution. Surprisingly I can't find any tutorials or video that is remotely close to what I was working on. There's a high chance that I might be doing something wrong here. Would appreciate any advise or suggestions!

What should we do to ensure the correct animation for our imported sprites? I can't seem to get my animated sprite to animate like it should be because of the different size every frames. If I attempt to set the origin point to a common part that I can find in my sprite, it's similar but still off and I can't do this for all my sprites since some of them have effects over the character and that break the common part that I found initially.

Hey, when you export your sprites you could leave a pink pixel near one corner and after you set the origin point there, you can remove it.

For the collision problem, if you navigate to "View" in the top left of C2, then check "show collision ploys" under the "Display" section, you should be able to see the collision of your sprites. This won't appear when you run the game, but you can at least see it in the editor. And if you want to see another frame, double tap the sprite and move that animation frame in the first position.

Hopefully this helps. =D
ImageImageImageImage
B
28
S
9
G
7
Posts: 229
Reputation: 5,518


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests