Jump to content


Photo

object not inside other object


  • Please log in to reply
2 replies to this topic

#1 _257502

_257502

    GMC Member

  • GMC Member
  • 98 posts
  • Version:Mac

Posted 01 July 2012 - 11:33 PM

i'm making a block that you can pass through only if my character variable out_of_phase=true, however that only happens when a key is pressed down and when it is released it is false.
Now when i release the key it sets the block back to solid and if my character is in the object he gets stuck. I want to add a check to see if he is inside the block object but can't quite figure it out, any ideas?

Edited by _257502, 13 July 2012 - 08:29 PM.

  • 0

#2 _226097

_226097

    GMC Member

  • GMC Member
  • 76 posts
  • Version:GM:Studio

Posted 01 July 2012 - 11:36 PM

Key Release for player:
if (place_meeting(x,y,obj_block) {
   // Do your thing
}
?
  • 0

#3 _257502

_257502

    GMC Member

  • GMC Member
  • 98 posts
  • Version:Mac

Posted 02 July 2012 - 03:00 AM

ok thanks i figured it out before, just did a bunch of bbox checks and it works great!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users