Path: blob/main/Scripts/R5/BossExplosion.txt
1319 views
//---------------Sonic CD BossExplosion Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer6#alias Object.Value1 : Object.Loops78// Player Aliases9#alias 0 : PLAYER_SONIC_A10#alias 1 : PLAYER_TAILS_A1112sub ObjectDraw1314DrawSprite(Object.Frame)1516// Make the Object rise by 3 pixels17Object.YPos -= 0x300001819// Animate the Explosion2021Object.Timer++22if Object.Timer > 323Object.Timer = 02425Object.Frame++26if Object.Frame > 427Object.Frame = 02829Object.Loops++30if Object.Loops == 231// Upon reaching the third loop, unload32Object.Type = TypeName[Blank Object]33end if34end if35end if3637end sub383940sub ObjectStartup41if Stage.PlayerListPos == PLAYER_SONIC_A // PLAYER_SONIC in origins42LoadSpriteSheet("Global/Items2.gif")43end if44if Stage.PlayerListPos == PLAYER_TAILS_A // PLAYER_TAILS in origins45LoadSpriteSheet("Global/Items2_t.gif")46end if47#platform: Use_Origins48if Stage.PlayerListPos == PLAYER_KNUCKLES49LoadSpriteSheet("Global/Items2_k.gif")50end if51if Stage.PlayerListPos == PLAYER_AMY52LoadSpriteSheet("Global/Items2_a.gif")53end if54#endplatform5556// Explosion Frames5758SpriteFrame(-16, -8, 32, 16, 1, 1)59SpriteFrame(-16, -16, 32, 32, 1, 84)60SpriteFrame(-16, -16, 32, 32, 1, 117)61SpriteFrame(-24, -24, 48, 48, 34, 1)62SpriteFrame(-24, -24, 48, 48, 34, 50)6364end sub656667// ========================68// Editor Subs69// ========================7071sub RSDKDraw72DrawSprite(0)73end sub747576sub RSDKLoad77LoadSpriteSheet("Global/Items2.gif")78SpriteFrame(-16, -8, 32, 16, 1, 1)7980SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")81end sub828384