[RESOLVED]Button Collision for anybody who needs this.
Posted: Sat Jan 07, 2012 6:05 am
Guys I am not lazy it's been a good 4 hours I am working this problem but IT JUST doesn't work out Please see this picture and help I have explained in the picture what I need.
here is what I have tried based on what skyderiegn told me he told me to make 2 vars like collide_button_state set one of them to 1 and the other one to 0 and the 1 should be on mouse button down and etc. so I did that and on my victim actor I made a case statement which says: this
Collision>Player>script editor:
switch(Action)
{
case 0: collide_button_state=0;
break;
case 1: collide_button_state=1;
{
DestroyActor("Event Actor");
}
break;
}
and on mouse button down I set my var to 1
and on mouse button up I set my var to 0
So what am I doing wrong because it's not doing anything.
here is what I have tried based on what skyderiegn told me he told me to make 2 vars like collide_button_state set one of them to 1 and the other one to 0 and the 1 should be on mouse button down and etc. so I did that and on my victim actor I made a case statement which says: this
Collision>Player>script editor:
switch(Action)
{
case 0: collide_button_state=0;
break;
case 1: collide_button_state=1;
{
DestroyActor("Event Actor");
}
break;
}
and on mouse button down I set my var to 1
and on mouse button up I set my var to 0
So what am I doing wrong because it's not doing anything.