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/Ending/Cloud.txt
1480 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: Cloud Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// ========================
9
// Events
10
// ========================
11
12
event ObjectUpdate
13
object.xvel = EndingSetup_scrollVelocity.x
14
object.xvel *= object.drawOrder
15
object.xpos += object.xvel
16
17
object.yvel = EndingSetup_scrollVelocity.y
18
object.yvel *= object.drawOrder
19
object.ypos += object.yvel
20
end event
21
22
23
event ObjectDraw
24
DrawSprite(object.frame)
25
end event
26
27
28
event ObjectStartup
29
LoadSpriteSheet("Ending/Objects.gif")
30
31
// Cloud Frames
32
SpriteFrame(-8, -4, 16, 8, 355, 165)
33
SpriteFrame(-24, -4, 48, 8, 306, 165)
34
SpriteFrame(-40, -4, 79, 8, 306, 156)
35
end event
36
37
38
// ========================
39
// Editor Events
40
// ========================
41
42
event RSDKDraw
43
DrawSprite(0)
44
end event
45
46
47
event RSDKLoad
48
LoadSpriteSheet("Ending/Objects.gif")
49
SpriteFrame(-40, -4, 79, 8, 306, 156) // Using biggest cloud as preview frame
50
51
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
52
end event
53
54