Anyone had platform issues when moving hotspot pos

For questions about using Classic.

Post » Mon Nov 14, 2011 1:28 pm

I have a character in my project with the platform behavior,
and it's collision detection is set to 'pixel'.

However in the project, for some unexplainable reason,
when I move the hotspot position of the character in the frames
of an animation same new hotspot position for every frame)
it just floats off to the right for absolutely no logical reason?
It can't be my script because I can spawn the character
anywhere in the air beforehand and it works, but if I'm
not moving the character on the ground or in other circumstances,
it just starts floating off to the right and flipping through
walls it should collide with?

Has anyone experienced anything like this before, is there any solution?
B
3
G
2
Posts: 58
Reputation: 1,166

Post » Mon Nov 14, 2011 3:26 pm

Might check the collision mask.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Mon Nov 14, 2011 11:28 pm

The collision mask isn't something that can cause floating when on the ground or in the air for absolutely no recognizable reason.
I've also never touched the collision mask, and the settings are set
to 'pixel' collision.
B
3
G
2
Posts: 58
Reputation: 1,166

Post » Mon Nov 14, 2011 11:40 pm

It can if you are changing frames while standing, and difference from the hotspot to the bottom of the collision mask are different each frame.
Basically One frame may push the object up, and another may push it sideways, etc.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Mon Nov 14, 2011 11:48 pm

Nope, as I mentioned the hotspot has been moved to the same position through every frame.
Also if he spawns in the air he should fall down, but if I spawn him int he air after the change (where a difference in the hotspot shouldn't
make that large a difference at all) he starts floating off to the right.
B
3
G
2
Posts: 58
Reputation: 1,166

Post » Tue Nov 15, 2011 1:50 pm

After some more testing, it seems as though the character floats off in the opposite direction to the location I move the hotspot o_O?

So I move the hotspot down, it floats up. Move it up, it floats down.
Left/right, right/left.

Any idea how/why this is occurring?
B
3
G
2
Posts: 58
Reputation: 1,166

Post » Tue Nov 15, 2011 6:48 pm

Posting the cap file would help.It's difficult to solve the problem without seeing what the actual problem is.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Nov 16, 2011 12:20 am

Well I finally isolated the issue @_@;
So I made a simplified demo file to show what's happening.

http://ifile.it/lkb3in9
Incase you don't have it, this project requires the following plugin -
advanced camera plugin
(It was the only way I could get it to follow the object, the 'center view on me' wasn't working?)

It seems as though when gravity is added, it works perfectly fine and
you can have the custom collisions.
(note: This is in the case of when you've also got platform behavior)
However, as soon move the hotspot, even though the gravity is set to off, it kicks in and also ignores the collision and flies through
the objects.

In the example I've currently left the hotspot in the middle so you
can see how works perfectly fine until you change the hotspots position.
sparkfeather2011-11-16 00:26:55
B
3
G
2
Posts: 58
Reputation: 1,166

Post » Wed Nov 16, 2011 12:30 am

It's not the hotspots, Physics+Platform behavior don't mix well.Disable the physics behavior.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Wed Nov 16, 2011 1:06 am

Well like I said, it works absolutely perfectly until you change the hotspot position.

So is there any way to be able to get custom collisions with platform
behavior without physics?
B
3
G
2
Posts: 58
Reputation: 1,166

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests