P
pepperjack22
Guest
Hi, Jack Here
I'm having trouble with a coding issue, I have three objects named Obj_Barrier_Trigger, Obj Barrier, and Obj_Gem.
in my game the player can pick up Obj_Gem and take it to an Obj_Barrier of their choice. Obj_Barrier_Trigger is basically a collision box around Obj_Barrier, but with a small buffer zone. the player will hit the trigger before the barrier.
the idea is that when the player collides with the trigger, the trigger will check to see if the player has a gem. and if so, the trigger will delete all barrier objects that it is in contact with. the problem, is that i cant even begin to comprehend how the trigger would be able to do this in the collision with Obj_Player event.
all i have at the moment is:
if global.Gem = 1
{
//do something here...
}
help?
I'm having trouble with a coding issue, I have three objects named Obj_Barrier_Trigger, Obj Barrier, and Obj_Gem.
in my game the player can pick up Obj_Gem and take it to an Obj_Barrier of their choice. Obj_Barrier_Trigger is basically a collision box around Obj_Barrier, but with a small buffer zone. the player will hit the trigger before the barrier.
the idea is that when the player collides with the trigger, the trigger will check to see if the player has a gem. and if so, the trigger will delete all barrier objects that it is in contact with. the problem, is that i cant even begin to comprehend how the trigger would be able to do this in the collision with Obj_Player event.
all i have at the moment is:
if global.Gem = 1
{
//do something here...
}
help?