Path: blob/master/Sonic 1/Scripts/Mission/Boss3Safty.txt
1483 views
// ----------------------------------1// RSDK Project: Sonic 12// Script Description: Safty Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// This Object is used in Spring Yard's Boss Rush stage (BR3 - BR3Zone03)89// ========================10// Aliases11// ========================1213// Player Aliases14private alias object.iypos : player.iypos151617// ========================18// Events19// ========================2021event ObjectUpdate22if game.missionCondition == MISSION_CONDITION_CLEAR23// If the Boss is defeated, then make sure the Player doesn't fall through the floor and die24if player[0].iypos >= 0x58025player[0].iypos = 0x58026end if27end if28end event293031// ========================32// Editor Events33// ========================3435event RSDKDraw36DrawSprite(0)3738if editor.drawgizmos == true39temp0 = object.xpos40temp0 -= 0x2000004142editor.drawingOverlay = true4344// todo: idr if w/h is screen-space or not45// this prolly doesn't work at all either46DrawRectWorld(temp0, 0x5800000, 0x400000, 0x20000, 255, 0, 255, 255)47DrawLine(object.xpos, object.ypos, object.xpos, 0x5800000, 255, 0, 255)4849editor.drawingOverlay = true50end if51end event525354event RSDKLoad55LoadSpriteSheet("Global/Display.gif")56SpriteFrame(-16, -16, 32, 32, 1, 143)5758SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")59end event606162