Path: blob/master/Sonic 2/Scripts/Mission/BossSafty.txt
1482 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Safty Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// This Object is normally used in the Boss Rush for CPZ and OOZ - BR2/BR2Zone02 and BR7/BR2Zone07, respectively89// ========================10// Aliases11// ========================1213private alias object.ypos : player.ypos141516// ========================17// Events18// ========================1920event ObjectUpdate21if game.missionCondition == MISSION_CONDITION_CLEAR22// If the Boss is defeated, then make sure the Player doesn't fall below where this Object is and die23if player[0].ypos >= object.ypos24player[0].ypos = object.ypos25end if26end if27end event282930// ========================31// Editor Events32// ========================3334event RSDKDraw35DrawSprite(0)3637// Ignoring editor.showGizmos on purpose3839editor.drawingOverlay = true4041temp0 = object.xpos42temp0 -= 0x20000043temp1 = temp044temp1 += 0x40000045DrawLine(temp0, object.ypos, temp1, object.ypos, 255, 255, 255)4647editor.drawingOverlay = false48end event495051event RSDKLoad52LoadSpriteSheet("Global/Display.gif")53SpriteFrame(-8, -8, 16, 16, 127, 113)5455SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")56end event575859