Path: blob/main/Scripts/Global/Explosion.txt
1319 views
//----------------Sonic CD Explosion Script-------------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer67#alias 0 : PLAYER_SONIC_A8#alias 1 : PLAYER_TAILS_A91011sub ObjectDraw12DrawSprite(Object.Frame)13Object.Timer++14if Object.Timer > 315Object.Timer = 016Object.Frame++17if Object.Frame > 418Object.Type = TypeName[Blank Object]19Object.Frame = 020end if21end if22end sub232425sub ObjectStartup26if Stage.PlayerListPos == PLAYER_SONIC_A27LoadSpriteSheet("Global/Items2.gif")28end if29if Stage.PlayerListPos == PLAYER_TAILS_A30LoadSpriteSheet("Global/Items2_t.gif")31end if32#platform: Use_Origins33if Stage.PlayerListPos == PLAYER_KNUCKLES34LoadSpriteSheet("Global/Items2_k.gif")35end if36if Stage.PlayerListPos == PLAYER_AMY37LoadSpriteSheet("Global/Items2_a.gif")38end if39#endplatform4041SpriteFrame(-16, -8, 32, 16, 1, 1) // #0 - Explosion Frame 042SpriteFrame(-16, -16, 32, 32, 1, 84) // #1 - Explosion Frame 143SpriteFrame(-16, -16, 32, 32, 1, 117) // #2 - Explosion Frame 244SpriteFrame(-24, -24, 48, 48, 34, 1) // #3 - Explosion Frame 345SpriteFrame(-24, -24, 48, 48, 34, 50) // #4 - Explosion Frame 446end sub474849// ========================50// Editor Subs51// ========================5253sub RSDKDraw54DrawSprite(0)55end sub565758sub RSDKLoad59LoadSpriteSheet("Global/Items2.gif")60SpriteFrame(-24, -24, 48, 48, 34, 1) // #0 - Explosion Frame 36162SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")63end sub646566