Snippets

blaac teleport.mod.gml

Updated by blaac

File teleport.mod.gml Modified

  • Ignore whitespace
  • Hide word diff
 #define step
 with (Player) if race_id = 2 if (button_released(index, "spec"))
 	{
-	var a = index
 	if skill_get(5)
 	if instance_exists(CrystalShield) && (variable_instance_get(CrystalShield, "creator") == self)
 		{
Created by blaac

File teleport.mod.gml Added

  • Ignore whitespace
  • Hide word diff
+#define step
+with (Player) if race_id = 2 if (button_released(index, "spec"))
+	{
+	var a = index
+	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
+			//	}
+			}
+		}
+	}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.