Snippets

blaac teleport.mod.gml

Created by blaac last modified
#define step
with (Player) if race_id = 2 if (button_released(index, "spec"))
	{
	if skill_get(5)
	if instance_exists(CrystalShield) && (variable_instance_get(CrystalShield, "creator") == self)
		{
		if position_meeting(mouse_x[index], mouse_y[index],Floor)
		if !position_meeting(mouse_x[index], mouse_y[index],Wall)
			{
			sound_play(sndCrystalTB)
			with (CrystalShield)
				{
				creator = other
				bskin = other.bskin
				instance_destroy()
				}
			x=mouse_x[index]
			y=mouse_y[index]
			with instance_create(x,y,CrystalShield)
				{
				creator = other
				bskin = other.bskin
				}
			//repeat 6		//sprite doesnt change for skins
			//with instance_create(x,y,CrystTrail)
			//	{
			//	creator = other
			//	bskin = other.bskin
			//	}
			}
		}
	}

Comments (0)