Glitch on jumping above and through objects

Get help using Construct 2

Post » Wed Nov 23, 2011 10:46 am

Hello.

I've this objects that are solid or non-solind depending on the Player's Y position.

When he's under the objects are non-solid and when he jumps over them they turn solid. That works okay.

The problem is: when he's beneath/inside them and jumps to get on top the jump has some sort of glitch.

It messes up with the jump itself and it feels weird and looks uncool on the gameplay.

Here's the CAPX.

Can anybody help me?

Many, many thanks in advance.
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Wed Nov 23, 2011 11:30 am

Have you checked if some of these links don't already treat that issue ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Wed Nov 23, 2011 11:34 am

Yes :) indeed :)

in fact this glitch comes from solving my initial doubt on this link
Jumping through blocks and standing on top of them (mario like)

B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Thu Nov 24, 2011 12:49 pm

what you wanna do first is lessen the events you have if possible, the more events you have checking different sizes and height and whatnot the more prone to error, its also very adviceable to use boxcollision as much as possible..

what i improved here is, placing of hotspot of the character to the bottom, and platforms to the top (for the positional data comparisment) and made the platforms one object with multiframes, and used boxcollisions, and now its one event instead of 10


http://dl.dropbox.com/u/36224287/platformtest.capxvtrix2011-11-24 12:49:36
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 24, 2011 2:56 pm

Wow @vtrix what you did is amazing :)
you fixed everything.

I'm not yet familierized with some 'parts' like loops and arrays.
Need to study way more.

Once again, a thousands thanks :)
B
18
S
4
G
5
Posts: 149
Reputation: 4,498


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests