Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-Sonic-2-2013-Script-Decompilation
Path: blob/master/Sonic 2/Scripts/ARZ/WaterSplash.txt
1480 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: Water Splash Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// ========================
9
// Aliases
10
// ========================
11
12
private alias object.value0 : object.timer
13
14
15
// ========================
16
// Events
17
// ========================
18
19
event ObjectUpdate
20
object.iypos = stage.waterLevel
21
22
object.timer++
23
if object.timer > 3
24
object.timer = 0
25
object.frame++
26
if object.frame > 8
27
object.type = TypeName[Blank Object]
28
end if
29
end if
30
end event
31
32
33
event ObjectDraw
34
DrawSprite(object.frame)
35
end event
36
37
38
event ObjectStartup
39
// 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 sheet
40
// The rest all load "CPZ/Objects3.gif" instead, which obviously doesn't belong in ARZ, but the colors align well enough to where there's
41
// no visible palette errors, so this oversight went unnoticed by the devs
42
LoadSpriteSheet("ARZ/Objects3.gif")
43
44
SpriteFrame(-10, -32, 20, 32, 1, 95)
45
SpriteFrame(-15, -32, 30, 32, 22, 95)
46
SpriteFrame(-15, -32, 30, 32, 53, 95)
47
SpriteFrame(-15, -32, 30, 32, 85, 95)
48
SpriteFrame(-16, -31, 31, 31, 116, 96)
49
SpriteFrame(-16, -31, 32, 31, 148, 96)
50
SpriteFrame(-16, -31, 32, 31, 181, 96)
51
SpriteFrame(-16, -16, 32, 16, 214, 96)
52
SpriteFrame(-16, -15, 32, 15, 214, 112)
53
end event
54
55
56
// ========================
57
// Editor Events
58
// ========================
59
60
event RSDKDraw
61
DrawSprite(0)
62
end event
63
64
65
event RSDKLoad
66
LoadSpriteSheet("ARZ/Objects3.gif")
67
SpriteFrame(-16, -31, 31, 31, 116, 96)
68
69
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
70
end event
71
72