Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/Special/SmokePuff.txt
1319 views
1
//-----------------Sonic CD Smoke Puff Script-----------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
// Aliases
6
#alias Object.Value0 : Object.Timer
7
8
9
sub ObjectDraw
10
DrawSprite(Object.Frame)
11
12
Object.Timer++
13
if Object.Timer > 3
14
Object.Timer = 0
15
16
Object.Frame++
17
if Object.Frame > 4
18
19
// Unload once animation is over
20
Object.Type = TypeName[Blank Object]
21
Object.Frame = 0
22
23
end if
24
end if
25
26
end sub
27
28
29
sub ObjectStartup
30
31
LoadSpriteSheet("Special/Objects.gif")
32
33
// Smoke Puff Frames
34
35
SpriteFrame(-16, -8, 32, 16, 1, 134)
36
SpriteFrame(-16, -16, 32, 32, 1, 151)
37
SpriteFrame(-16, -16, 32, 32, 1, 184)
38
SpriteFrame(-24, -24, 48, 48, 34, 134)
39
SpriteFrame(-24, -24, 48, 48, 34, 183)
40
41
end sub
42
43
44
// ========================
45
// Editor Subs
46
// ========================
47
48
sub RSDKDraw
49
DrawSprite(0)
50
end sub
51
52
53
sub RSDKLoad
54
LoadSpriteSheet("Special/Objects.gif")
55
SpriteFrame(-16, -8, 32, 16, 1, 134)
56
57
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
58
end sub
59
60