Jump to content


Photo

Collision issue


  • Please log in to reply
3 replies to this topic

#1 Joegernaut

Joegernaut

    GMC Member

  • New Member
  • 77 posts

Posted 19 July 2011 - 01:04 AM

I have Game Maker 8.1 Standard.

I've made a platform shooter, It works well except when I hit the roof with my character, it glitches and kind of teleports me downwards.

My collision code with Obj_Solid is this:

move_contact_solid(270,12) //Move to object
vspeed = 0 //Set falling speed to 0

Thanks, Joe

Edited by Joegernaut, 19 July 2011 - 01:04 AM.

  • 0

#2 AceMcCloud

AceMcCloud

    GMC Member

  • New Member
  • 1 posts

Posted 19 July 2011 - 01:25 AM

It's probably because you're moving him downwards, which is fine for floor but not for ceiling :)
  • 0

#3 Joegernaut

Joegernaut

    GMC Member

  • New Member
  • 77 posts

Posted 19 July 2011 - 01:43 AM

so... How can I fix this?

Joe
  • 0

#4 epicCreations

epicCreations

    Cool As Ace

  • New Member
  • 1241 posts

Posted 19 July 2011 - 03:39 AM

move_contact_solid(direction,12) //Move to object

vspeed = 0 //Set falling speed to 0

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users