hitting box question?

CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
so i want boxes in my platformer but when the actor collides with it, it will drop coins ect, but i want the actor to have to jump up and hit the bottom of the box with its head, not just walk on top, so how can i detect if the bottom of the box is hit??

Comments

  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    yeh haha just found jamies tutorial of head collisions, its great
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Say you have Mario - just constrain a clear box to his head position that collides with the brick - that will work fine unless you have jump-through platforms.

    Cheers, M@
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    yeh haha just found jamies tutorial of head collisions, its great
    I was about to post the link, glad you found it already.

Sign In or Register to comment.