Path: blob/master/Sonic 2/Scripts/MPZ/PlatConveyor.txt
1482 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Plat Conveyor Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Function Declarations9// ========================1011reserve function PlatConveyor_DebugDraw12reserve function PlatConveyor_DebugSpawn1314private function PlatConveyor_DebugDraw15DrawSprite(0)16end function171819private function PlatConveyor_DebugSpawn20CreateTempObject(TypeName[Plat Conveyor], 0, object.xpos, object.ypos)21end function222324// ========================25// Events26// ========================2728event ObjectDraw29DrawSprite(object.propertyValue)30end event313233event ObjectStartup34LoadSpriteSheet("MPZ/Objects.gif")35SpriteFrame(-2, -8, 4, 16, 173, 53)36SpriteFrame(-2, -8, 4, 16, 178, 53)3738SetTableValue(TypeName[Plat Conveyor], DebugMode_ObjCount, DebugMode_TypesTable)39SetTableValue(PlatConveyor_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)40SetTableValue(PlatConveyor_DebugSpawn, DebugMode_ObjCount, DebugMode_SpawnTable)41DebugMode_ObjCount++42end event434445// ========================46// Editor Events47// ========================4849event RSDKDraw50DrawSprite(object.propertyValue)51end event525354event RSDKLoad55LoadSpriteSheet("MPZ/Objects.gif")56SpriteFrame(-2, -8, 4, 16, 173, 53)57SpriteFrame(-2, -8, 4, 16, 178, 53)5859SetVariableAlias(ALIAS_VAR_PROPVAL, "frameID")60end event616263