Path: blob/main/Scripts/Global/SmokePuff.txt
1319 views
//------------------Sonic CD Smoke Puff Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer67// Player8#alias 0 : PLAYER_SONIC_A9#alias 1 : PLAYER_TAILS_A101112sub ObjectDraw13DrawSprite(Object.Frame)14Object.Timer++15if Object.Timer > 316Object.Timer = 017Object.Frame++18if Object.Frame > 419Object.Type = TypeName[Blank Object]20Object.Frame = 021end if22end if23end sub242526sub ObjectStartup27if Stage.PlayerListPos == PLAYER_SONIC_A // PLAYER_SONIC in origins28LoadSpriteSheet("Global/Items2.gif")29end if30if Stage.PlayerListPos == PLAYER_TAILS_A // PLAYER_TAILS in origins31LoadSpriteSheet("Global/Items2_t.gif")32end if33#platform: Use_Origins34if Stage.PlayerListPos == PLAYER_KNUCKLES35LoadSpriteSheet("Global/Items2_K.gif")36end if37if Stage.PlayerListPos == PLAYER_AMY38LoadSpriteSheet("Global/Items2_A.gif")39end if40#endplatform41SpriteFrame(-16, -8, 32, 16, 1, 1) // #0 - Smoke Puff Frame 042SpriteFrame(-16, -16, 32, 32, 1, 18) // #1 - Smoke Puff Frame 143SpriteFrame(-16, -16, 32, 32, 1, 51) // #2 - Smoke Puff Frame 244SpriteFrame(-24, -24, 48, 48, 34, 1) // #3 - Smoke Puff Frame 345SpriteFrame(-24, -24, 48, 48, 34, 50) // #4 - Smoke Puff Frame 446end sub474849// ========================50// Editor Subs51// ========================5253sub RSDKDraw54DrawSprite(0)55end sub565758sub RSDKLoad59LoadSpriteSheet("Global/Items2.gif")60SpriteFrame(-16, -8, 32, 16, 1, 1) // #0 - Smoke Puff Frame 06162SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")63end sub646566