How do I fix this strange landing glitch? (Platform+)

Get help using Construct 2

Post » Fri May 30, 2014 1:23 am

I'm making a side scrolling shooter and having quite a bit of fun with it, however after refining the jumping animation and mechanic, I'm experiencing a sporadic glitch using the Platform+ behavior plugin.

When the player lands - SOMETIMES - the sprite will quickly toggle between the "landing" and "standing" animations.

The strange thing is, this doesn't happen all the time - only on certain surfaces. In some stages, only the "bottom floor" does this. In others, only specific crates.

Give the .capx file a spin and see for yourself. Note: You'll need the Platform+ behavior installed.

https://www.dropbox.com/s/23ibyuleyr6pg ... 28-14.capx

Thanks in advance!
B
11
S
3
Posts: 30
Reputation: 745

Post » Fri May 30, 2014 9:33 pm

I know the download isn't small, but you'll get to play a cool game if you give it a shot :) It's really quite playable aside from this glitch :)
B
11
S
3
Posts: 30
Reputation: 745

Post » Fri May 30, 2014 9:56 pm

Some people, me included, don't really want to install non-standard plugins, especially this one as it doesn't look as though it's regularly maintained, which may explain your problem.

There have been quite a few breaking changes since that plugin was first created, any of which could have had an adverse effect.

Is there no possibility of you just using the standard platform plugin?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Post » Sat May 31, 2014 12:26 am

I could use the standard Platform behavior, however the velocity-sensitive jumping and built-in double-jump in Platform+ are super appealing to me.
B
11
S
3
Posts: 30
Reputation: 745

Post » Sat May 31, 2014 12:57 am

I really liked your animations, bravo :)

I don't think there is anything wrong with the Platform+ behavior. The problem is that you use the Sprite that holds all the animations as a Platform/collision object. Never do that!
Use a simple box that has roughly the size of your player (a rectangular shape) as the object that has the Platform behavior (and does all of the collision checking), and pin your sprite that has the animations into the first object. Don't forget to set the box to invisible.

Also, you can surely notice that there is jagged movement in the jumping anyway. That is because the origin point and the collision polygons of each animation are misaligned. Try to set the origin point of each animation on the same, relative point. Most of the times it should be around the feet, where an imaginary vertical line below the center of the mass meets the floor.

I hope I was clear enough ;)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Sun Jun 01, 2014 5:04 pm

Thank you! Yes, that was extremely clear :)

Ya know, I ran into a similar problem with a top-down game I'm also making but somehow figured a side scroller would be free of this collision problem :lol:

I have a few questions, though:

- In regards to "jagged jumping", should the collision box change size for the jumping animations? The character pulls her knees in when she jumps, making her a bit smaller.

- I had changed the origin points to match the changing animation, but sometimes the character will land "inside" a platform. This will be fixed with the collision box sprite?

Also, sort of off topic, but do you know how to make the ducking function "override" running?
B
11
S
3
Posts: 30
Reputation: 745

Post » Sun Jun 01, 2014 6:12 pm

Hello :)

- In regards to "jagged jumping"... You'll have to find the golden rule for your character. Basically, you want the part of the player that touches the ground (the feet) to be alined with the lowest part of the collision object. For example, you could use a different frame on the collision object that reflects the height difference from Idle pose to Jumping pose. Or you could use multiple collision objects for different body parts (to detect bullet hits) and dynamically position them using image points. I 'd suggest a simple solution though.

- I had changed the origin points to match the changing animation, but sometimes the character will land "inside" a platform. This will be fixed with the collision box sprite?
Yes! The simpler the collision box sprite, the more control you'll have over the player's interaction with the world around her!

On this Topic https://www.scirra.com/forum/viewtopic.php?f=147&t=94133&p=788441&hilit=slope#p788441 the forth post has an example that handle animation states (and slope angles!) in a very neat way. Basically, you need to exclude curtain states by saying "if this key is pressed and Player Is NOT moving---> Play run animation"

Keep it up! :D
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Tue Jul 08, 2014 1:10 pm

Well, I fixed it!

It's all about essentially creating a game where you control a nice, stable box...then pinning an animation to it to give the illusion you're actually controlling a character. As soon as I made this change (which wasn't easy since I was getting to it late in the development) ALL the little glitchy problems I was experiencing were resolved! This is the ONLY way to successfully make complicated platforming animation. Thank you all for your assistance!!

Check out the finished game in action here:

Play it here: http://www.newgrounds.com/portal/view/642266
B
11
S
3
Posts: 30
Reputation: 745

Post » Tue Jul 08, 2014 2:24 pm

Where can I get the platform+ behaviour?

Edit: I've played the game and it is pretty good, awesome art as well.
Last edited by caiorosisca on Tue Jul 08, 2014 2:35 pm, edited 1 time in total.
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Tue Jul 08, 2014 2:34 pm

Check this thread: viewtopic.php?f=153&t=81233&p=661255&hilit=platform+plus#p661255

And, thank you! :) Glad you enjoyed the game! I hope you have similar success with Platform+. It saves you a ton of effort, trial and error. The stock platform behavior should honestly just be updated to contain the features of Plus.
Last edited by rythom on Tue Jul 08, 2014 10:22 pm, edited 1 time in total.
B
11
S
3
Posts: 30
Reputation: 745

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Construct Monkey, shawnzien, tatogame and 10 guests