View Single Post
  #1  
Old 01-29-2010, 07:18 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Platforming and slopes

Anyone have any suggestions on how to accomplish this? I've tried checking for slope tiles ahead of movement, and incrementing the player.y accordingly(if a 45 degree angle, increment player.y the same as speed, if a 22.5 degree angle, half the speed)... but that's proved unreliable, especially at speeds not divisible by .25. Not only that, but it's not a solid detection(for instance, if the player falls on a slope, nothing would happen).

Right now I'm using NPC's and simply using testnpc(since an NPC inherits the shape of the image) to 'stick' the player onto the slope of the NPC in pixel precision, but this is also proving unreliable at higher speeds.
Reply With Quote