Path: blob/main/Scripts/R7/FireTrail.txt
1319 views
//-----------------Sonic CD Fire Trail Script-----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer678sub ObjectDraw9// Draw the sprite (notably done before the rest of the code is done)10DrawSpriteFX(Object.Frame, FX_FLIP, Object.XPos, Object.YPos)1112// Animate the object13Object.Timer++14if Object.Timer > 315Object.Timer = 01617Object.Frame++18if Object.Frame > 319// Unload upon reaching frame 4, since it's no longer needed now20Object.Type = TypeName[Blank Object]21Object.Frame = 022end if23end if2425end sub262728sub ObjectStartup2930LoadSpriteSheet("R7/Objects.gif")3132// Fire Trail Frames33SpriteFrame(-24, -32, 32, 32, 207, 59) // 0 - Larger Frame34SpriteFrame(-16, -16, 24, 16, 199, 1) // 1 - Smaller Frame35SpriteFrame(-24, -32, 32, 32, 207, 59) // 2 - Larger Frame, Repeated36SpriteFrame(-16, -16, 24, 16, 199, 1) // 3 - Smaller Frame, Repeated3738end sub394041// ========================42// Editor Subs43// ========================4445sub RSDKDraw46DrawSprite(0)47end sub484950sub RSDKLoad51LoadSpriteSheet("R7/Objects.gif")52SpriteFrame(-24, -32, 32, 32, 207, 59) // Larger Frame of the pair5354SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")55end sub565758