Path: blob/master/Sonic 2/Scripts/ARZ/WaterSplash.txt
1480 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Water Splash Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Aliases9// ========================1011private alias object.value0 : object.timer121314// ========================15// Events16// ========================1718event ObjectUpdate19object.iypos = stage.waterLevel2021object.timer++22if object.timer > 323object.timer = 024object.frame++25if object.frame > 826object.type = TypeName[Blank Object]27end if28end if29end event303132event ObjectDraw33DrawSprite(object.frame)34end event353637event ObjectStartup38// Out of all the Water-related objects in ARZ, this and Water are the only ones to correctly load the ARZ version of the Objects3 sheet39// The rest all load "CPZ/Objects3.gif" instead, which obviously doesn't belong in ARZ, but the colors align well enough to where there's40// no visible palette errors, so this oversight went unnoticed by the devs41LoadSpriteSheet("ARZ/Objects3.gif")4243SpriteFrame(-10, -32, 20, 32, 1, 95)44SpriteFrame(-15, -32, 30, 32, 22, 95)45SpriteFrame(-15, -32, 30, 32, 53, 95)46SpriteFrame(-15, -32, 30, 32, 85, 95)47SpriteFrame(-16, -31, 31, 31, 116, 96)48SpriteFrame(-16, -31, 32, 31, 148, 96)49SpriteFrame(-16, -31, 32, 31, 181, 96)50SpriteFrame(-16, -16, 32, 16, 214, 96)51SpriteFrame(-16, -15, 32, 15, 214, 112)52end event535455// ========================56// Editor Events57// ========================5859event RSDKDraw60DrawSprite(0)61end event626364event RSDKLoad65LoadSpriteSheet("ARZ/Objects3.gif")66SpriteFrame(-16, -31, 31, 31, 116, 96)6768SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")69end event707172