Path: blob/main/Scripts/R8/BBFireball.txt
1319 views
//-------------Sonic CD Big Bomb Fireball Script--------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value1 : Object.XVelocity6#alias Object.Value2 : Object.YVelocity78// Collision Plane9#alias 0 : COLLISION_PLANE_A101112sub ObjectMain13Object.XPos += Object.XVelocity14Object.YPos += Object.YVelocity15Object.YVelocity += 0x20001617if Object.OutOfBounds == true18Object.Type = TypeName[Blank Object]19end if20end sub212223sub ObjectPlayerInteraction24if Player.CollisionPlane == COLLISION_PLANE_A25if Player.State != Player_State_Static26PlayerObjectCollision(C_TOUCH, -8, -8, 8, 8)27if CheckResult == true28CallFunction(Player_Hit)29end if30end if31end if32end sub333435sub ObjectDraw36TempValue0 = Object.AnimationTimer37TempValue0 >>= 138DrawSprite(TempValue0)3940Object.AnimationTimer++41Object.AnimationTimer &= 342end sub434445sub ObjectStartup46LoadSpriteSheet("R8/Objects2.gif")4748SpriteFrame(-8, -8, 16, 16, 109, 110) // #0 - Big Bomb Fireball yellow frame49SpriteFrame(-8, -8, 16, 16, 126, 110) // #1 - Big Bomb Fireball red frame50end sub515253// ========================54// Editor Subs55// ========================5657sub RSDKDraw58DrawSprite(0)59end sub606162sub RSDKLoad63LoadSpriteSheet("R8/Objects2.gif")64SpriteFrame(-8, -8, 16, 16, 109, 110) // #0 - Big Bomb Fireball yellow6566SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")67end sub686970