Hi Everyone!

I am trying to set up a teleporter; But its not working properly.

It does recognize that something is hitting it, cause it does beep; However, it doesnt send the 'you' pointer to the location its told to go to.


Code:
function tele(){

	if(event_type == event_impact){

		you.x = my.skill1;you.y = my.skill2;you.pan = my.skill3;
		beep();
		
	}

}

action teleporter{

	my.invisible = on;
	my.enable_impact = on;	

	my.event = tele;
}



what is missing?

Thank you for your valuable time laugh

Last edited by DevoN; 06/11/10 00:13.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com