From d4a98503682a976968a3002ba3f7eaa37a46cbce Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 May 2023 16:28:10 -0700 Subject: [PATCH] add trumpet burst animation still needs work --- Assets/.DS_Store | Bin 10244 -> 8196 bytes Assets/Animations/Trumpet.meta | 8 + Assets/Animations/Trumpet/poof.anim | 96 ++++ Assets/Animations/Trumpet/poof.anim.meta | 8 + .../Trumpet/trumpet_animator.controller | 72 +++ .../Trumpet/trumpet_animator.controller.meta | 8 + Assets/Prefabs/Player.prefab | 109 +++- Assets/Scripts/PlayerController.cs | 7 + Assets/Sprites/Effects/smoke_burst.png | Bin 0 -> 1450 bytes Assets/Sprites/Effects/smoke_burst.png.meta | 476 ++++++++++++++++++ 10 files changed, 783 insertions(+), 1 deletion(-) create mode 100644 Assets/Animations/Trumpet.meta create mode 100644 Assets/Animations/Trumpet/poof.anim create mode 100644 Assets/Animations/Trumpet/poof.anim.meta create mode 100644 Assets/Animations/Trumpet/trumpet_animator.controller create mode 100644 Assets/Animations/Trumpet/trumpet_animator.controller.meta create mode 100644 Assets/Sprites/Effects/smoke_burst.png create mode 100644 Assets/Sprites/Effects/smoke_burst.png.meta diff --git a/Assets/.DS_Store b/Assets/.DS_Store index dde32dc726ed806c6ae0ddb8aeadc581e2efe52f..51ced9105ddc1e6e94b4b061af49532dddf40c0d 100644 GIT binary patch delta 120 zcmZn(XmOBWU|?W$DortDU;r^W7$CF&_ryZ6iF%5nY#@0C1_1_!0)`TX;-vE8f~1^{ zh11w4Ht=p{=V0MrWZTRw_?umjnE?zWxEUB2Tp1VyxHlGlXP(Tj63D^GzyLCqVRAgr K)XjfH*_i?36c!Z# delta 210 zcmZp1XbF&DU|?W$DortDU{GLSVBlbY&;mRY3&ketDT;yw7#SD@7#I>6iW!O-QW;7Z ziZ>QcW1rZ-yP2JXg+mggf{P)aA&nu4K^IxoWL5D7c2i3o1!F_Q$!o;z6|t%+3ogpb z$(); gameUI = GameObject.FindGameObjectWithTag("GameUICanvas").GetComponent(); trumpetSprite.enabled = false; + trumpetAnimationObject = trumpetSprite.gameObject.transform.GetChild(0).gameObject; + trumpetAnimationObject.SetActive(false); } private void Start() @@ -581,7 +584,11 @@ public class PlayerMovement : MonoBehaviour { trumpetActive = true; trumpetSprite.enabled = true; + trumpetAnimationObject.SetActive(true); + trumpetAnimationObject.GetComponent().Play("poof"); yield return new WaitForSeconds(.5f); + + trumpetAnimationObject.SetActive(false); trumpetSprite.enabled = false; trumpetActive = false; } diff --git a/Assets/Sprites/Effects/smoke_burst.png b/Assets/Sprites/Effects/smoke_burst.png new file mode 100644 index 0000000000000000000000000000000000000000..c92b637d1a32ab89a8c2c16c0dd1b1757cf29c99 GIT binary patch literal 1450 zcmeAS@N?(olHy`uVBq!ia0y~yU~m9o4mJh`hEk44ofy`glX=O&z`&C3 z=qM&(O%3CHoBn1FMv$i(^Pd+|y~NOK*D#u*%-$c4f?XI#(!wiR*x&rHq|u zY1gidFAdC1pC+Dl%`~vB{mt(1p#SpAFBi5PJN5bVXU=)^=AFy7{r@h&Jj7bZ%<7ho z*}D7p?uqp@^%gV)o!>9?Y45&$e6RP#6s%A#=sjEe>C>l8mMoKs-pwjZEaS-NHD1k_ z?HpXas_s>LNoFWZ!`M&|f-*(OIMuvfh(%75uFci)@f`*(M2?r1LY(P8;e>^i;C z$L3JlE~S${kq}mV*>6hZ=>&zxNW(D6U;)rzkwe+0RuB0M{ zMP*A?3NY{QDfHd$<#XvyGjE68V#XC0_1hQh)#j1D;gPlAa>a)Oe>?I!u0)7#cs2}cbhqLV};cWHS6pck0qXuysCD@ApX_* zms&rhk4Hp)KWf;0t?{+aEhUBKoW}WvSI)h-I?=qen*GAl^LMlzk1B?&GgSyZU$>33 z`~GTgqqf3NH4kkLJ@Nc{^HG@Wg#&LkxGzvI7f;_<=@Ru=`J$A3=e3BBva7z;H(r}@ z!Dhaag;7iNf6i0kcN?zFFkslXu+BYSljW@7UelVR0#V6HAO9)5v{Q{<@LhUO_-vVr zc^9QT-5#3df86XEV*hyQTYrPe#iPbv-`xfrW=9yko_`LV@cz1W^DcYym{%Mz z$;I>k)TC!~s64%6`uNZrfeTXUVa(UsmVFC(R1*{8{<3R%{p*Yup06UaA76O#SEQ*^_)V$Bn{0z`ze4K`j<4YS@@vVzS$>=P zxzd^cemZxR&B!B{E1FM{+hhNgNRMzIK8GuPCZb6XrW>w%ajnyHR`mwPi|Hl|roWyF zY$~< z`{=RW*;FryZS1p)-c023OmH)kD zy_uus%dg*LTyeDi{R5TcH&@Gi?zAjrWIUPp-g`q&zU%-1 literal 0 HcmV?d00001 diff --git a/Assets/Sprites/Effects/smoke_burst.png.meta b/Assets/Sprites/Effects/smoke_burst.png.meta new file mode 100644 index 0000000..cfdb242 --- /dev/null +++ b/Assets/Sprites/Effects/smoke_burst.png.meta @@ -0,0 +1,476 @@ +fileFormatVersion: 2 +guid: d8b9cbe288db14073a0a854f6a7fcf77 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 32 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: Smoke & Fire_0 + rect: + serializedVersion: 2 + x: 0 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 7a25c3117f6644619bb6c43fce3f356d + internalID: 206937997 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_1 + rect: + serializedVersion: 2 + x: 16 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: ec321cf1d06364e14a006620184d73ec + internalID: 276900702 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_2 + rect: + serializedVersion: 2 + x: 32 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 065c549a3fd3348ee8cd49358157996f + internalID: 757912125 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_3 + rect: + serializedVersion: 2 + x: 48 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 05ce2cfe02ccc40f7b8dbd297eec7d7c + internalID: -1984119684 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_4 + rect: + serializedVersion: 2 + x: 0 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: f476d88e1a601482faad600dc6b6a881 + internalID: 2060949245 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_5 + rect: + serializedVersion: 2 + x: 16 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: e107455efb3dd47469e6ce1034dbe6d7 + internalID: -935418220 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_6 + rect: + serializedVersion: 2 + x: 32 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 512593a6a169448679aa707fe41a4886 + internalID: -1664640138 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_7 + rect: + serializedVersion: 2 + x: 48 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 2f06537454aed478fb592b3832b345ac + internalID: 273046767 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_8 + rect: + serializedVersion: 2 + x: 0 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: ffc8a9f7a0e3442118c444d83ee98d90 + internalID: 18386231 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_9 + rect: + serializedVersion: 2 + x: 16 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 4a69c42f55a3d4644b106f62bffb869f + internalID: 1926582686 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_10 + rect: + serializedVersion: 2 + x: 32 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: b16d6b224aa7b489e967568459c0fdd9 + internalID: -1017107272 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_11 + rect: + serializedVersion: 2 + x: 48 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: c41fbf0c93eb248f38b9427e76262923 + internalID: 876473693 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_12 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: e834c47c7e4fe43b48bb40aa4991746f + internalID: -1439004463 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_13 + rect: + serializedVersion: 2 + x: 16 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 414c1ec2e95ee41c9af828322d3baa84 + internalID: -8292755 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_14 + rect: + serializedVersion: 2 + x: 32 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 2d970f108b8d2415fa34fd779962fac2 + internalID: 1906196376 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_15 + rect: + serializedVersion: 2 + x: 48 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 8f4452365c7ed4d17a6d5e2438577d49 + internalID: -974297211 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: + Smoke & Fire_0: 206937997 + Smoke & Fire_1: 276900702 + Smoke & Fire_10: -1017107272 + Smoke & Fire_11: 876473693 + Smoke & Fire_12: -1439004463 + Smoke & Fire_13: -8292755 + Smoke & Fire_14: 1906196376 + Smoke & Fire_15: -974297211 + Smoke & Fire_2: 757912125 + Smoke & Fire_3: -1984119684 + Smoke & Fire_4: 2060949245 + Smoke & Fire_5: -935418220 + Smoke & Fire_6: -1664640138 + Smoke & Fire_7: 273046767 + Smoke & Fire_8: 18386231 + Smoke & Fire_9: 1926582686 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: