1 decade ago by MatthewM
I noticed some strange behavior when using 1-way platforms in my scrolling platform game.
-- When applying accel.x to my objects they seemed 'stuck'.
-- I also noticed that I was (generally) unable to jump when on the 1-way platform.
Both work fine on a normal solid.
I did some debugging and noticed that the vel.y for my player was generally not 0 when it was standing on the platform. The value ranged between -0.10 and -0.15 or so. In the case of 'jump' not working, it was because I was checking Entity.standing, but this value was false because of the minute downward motion.
I worked around it by allowing Entity.standing to be true for Entity.vel.y < -1.
I'm not sure if this is a bug or if I'm doing something wrong, but I thought I would ask. Thanks!
Using Impact 1.22.
-- When applying accel.x to my objects they seemed 'stuck'.
-- I also noticed that I was (generally) unable to jump when on the 1-way platform.
Both work fine on a normal solid.
I did some debugging and noticed that the vel.y for my player was generally not 0 when it was standing on the platform. The value ranged between -0.10 and -0.15 or so. In the case of 'jump' not working, it was because I was checking Entity.standing, but this value was false because of the minute downward motion.
I worked around it by allowing Entity.standing to be true for Entity.vel.y < -1.
I'm not sure if this is a bug or if I'm doing something wrong, but I thought I would ask. Thanks!
Using Impact 1.22.