"Small" Collision Glitches
Forum » Forums / Have Your Question Answered » "Small" Collision Glitches
started by: spacechase0spacechase0
on: 1258598617|%e %b %Y, %H:%M %Z|agohover
number of posts: 2
rss icon RSS: new posts
"Small" Collision Glitches
spacechase0spacechase0 1258598617|%e %b %Y, %H:%M %Z|agohover

I added some (smaller) blocks, and the greatest thing happens every once in a while. I just jump into the bottom of it, and about one of every five times, it stops and crashes the game. Another one is that if I jump into one of the big walls (on the sides) and keep going I fall through the bottom.

Anyone see anything about what is wrong?

(EDIT: Code updated semi-significantly)

last edited on 1258925343|%e %b %Y, %H:%M %Z|agohover by spacechase0 + show more
unfold "Small" Collision Glitches by spacechase0spacechase0, 1258598617|%e %b %Y, %H:%M %Z|agohover
Re: "Small" Collision Glitches
u9u9 1259013280|%e %b %Y, %H:%M %Z|agohover

Ok, i moved some of the simulation around. Especially, first read input, then move character, then do collisions, and repeat. I also altered the way vertical collision is handled. Basically, if nothing as at your feet, gravity sets in, if the feet at inside the wall, move player up out of the wall. If player is moving up, and collides (jumping) cancel upward movement so he can fall down again (out of the thing he jumped into).

I hope you can figure it out :)

unfold Re: "Small" Collision Glitches by u9u9, 1259013280|%e %b %Y, %H:%M %Z|agohover
new post