New answers tagged

0

You could do it as you did above (get the distance to the line and if it's less than some number, they are colliding), or you could see if the player's position is a point on the line. If so, they are colliding. The downside of doing it this way is you have to do intra-frame collision checking (ie if the players speed is 2 pixels, you could miss an ...


0

I figured it out. Since lines can be seen as equations, you can detect if the player(or whatever)'s rise is equal(or similar) to the rise of the line. To convert a line to a segment, just make pygame check to see if the player is colliding with a rect that's two corners are the start and end points of the line. Make sure the rect has a positive side though, ...


0

Not sure if it would be something you want to consider, but something I've seen work well with classic works (the specific ones I had in mind used fairy tales instead of Shakespeare) is to have the player be a third party participant that is effected by the play.For instance, in World of Warcraft they played out a raid boss as Little Red Riding Hood and the ...



Top 50 recent answers are included