Path: blob/main/Scripts/R7/InvBarrier.txt
1319 views
//-------------Sonic CD Invisible Barrier Script--------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//345sub ObjectPlayerInteraction6if Player.Angle == 07PlayerObjectCollision(C_TOUCH, -16, -14, 16, 16)89if CheckResult == true10// Push the player out1112Player.XPos = Player.CollisionLeft13Player.XPos <<= 1614Player.XPos += Object.XPos15Player.XPos -= 0x100000 // 10 pixels left16end if17end if1819end sub202122// ========================23// Editor Subs24// ========================2526sub RSDKDraw27DrawSprite(0)2829// Draw the object's switch's hitbox3031TempValue0 = Object.iXPos32TempValue0 -= 1633TempValue1 = Object.iYPos34TempValue1 -= 1435DrawRectOutline(TempValue0, TempValue1, 32, 30, 255, 255, 255, 255)36end sub373839sub RSDKLoad40LoadSpriteSheet("Global/Display.gif")41SpriteFrame(-16, -14, 32, 30, 1, 145) // "Script" Icon - it's a tad bit large for the actual hitbox but I can't think of a better fit...4243SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")44end sub454647