Path: blob/main/Scripts/R6/InvisibleBarrier.txt
1319 views
//------------Sonic CD R6 Barrier Script-------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34//-------Aliases-------//5#alias 68: TYPE_R6BARRIER678sub ObjectPlayerInteraction9if Player.Animation != ANI_LEDGEPULLUP10PlayerObjectCollision(C_TOUCH, -16, -14, 16, 16)11if CheckResult == 112if Player.XPos < Object.XPos13Player.XPos = Player.CollisionLeft14Player.XPos <<= 1615Player.XPos += Object.XPos16Player.XPos -= 0x10000017else18Player.XPos = Player.CollisionRight19Player.XPos <<= 1620Player.XPos += Object.XPos21Player.XPos += 0x10000022end if23switch Object.PropertyValue24case 125Player.YPos = Player.CollisionTop26Player.YPos <<= 1627Player.YPos += Object.YPos28Player.YPos -= 0x10000029break30case 231Player.YPos = Player.CollisionBottom32Player.YPos <<= 1633Player.YPos += Object.YPos34Player.YPos += 0x30000035break36end switch37end if38end if39end sub4041sub RSDKDraw42DrawSprite(0)43end sub4445sub RSDKLoad46LoadSpriteSheet("Global/Display.gif")47SpriteFrame(-16, -16, 32, 32, 1, 143)48end sub495051