Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/Global/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
// Player
9
#alias 0 : PLAYER_SONIC_A
10
#alias 1 : PLAYER_TAILS_A
11
12
13
sub ObjectDraw
14
DrawSprite(Object.Frame)
15
Object.Timer++
16
if Object.Timer > 3
17
Object.Timer = 0
18
Object.Frame++
19
if Object.Frame > 4
20
Object.Type = TypeName[Blank Object]
21
Object.Frame = 0
22
end if
23
end if
24
end sub
25
26
27
sub ObjectStartup
28
if Stage.PlayerListPos == PLAYER_SONIC_A // PLAYER_SONIC in origins
29
LoadSpriteSheet("Global/Items2.gif")
30
end if
31
if Stage.PlayerListPos == PLAYER_TAILS_A // PLAYER_TAILS in origins
32
LoadSpriteSheet("Global/Items2_t.gif")
33
end if
34
#platform: Use_Origins
35
if Stage.PlayerListPos == PLAYER_KNUCKLES
36
LoadSpriteSheet("Global/Items2_K.gif")
37
end if
38
if Stage.PlayerListPos == PLAYER_AMY
39
LoadSpriteSheet("Global/Items2_A.gif")
40
end if
41
#endplatform
42
SpriteFrame(-16, -8, 32, 16, 1, 1) // #0 - Smoke Puff Frame 0
43
SpriteFrame(-16, -16, 32, 32, 1, 18) // #1 - Smoke Puff Frame 1
44
SpriteFrame(-16, -16, 32, 32, 1, 51) // #2 - Smoke Puff Frame 2
45
SpriteFrame(-24, -24, 48, 48, 34, 1) // #3 - Smoke Puff Frame 3
46
SpriteFrame(-24, -24, 48, 48, 34, 50) // #4 - Smoke Puff Frame 4
47
end sub
48
49
50
// ========================
51
// Editor Subs
52
// ========================
53
54
sub RSDKDraw
55
DrawSprite(0)
56
end sub
57
58
59
sub RSDKLoad
60
LoadSpriteSheet("Global/Items2.gif")
61
SpriteFrame(-16, -8, 32, 16, 1, 1) // #0 - Smoke Puff Frame 0
62
63
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
64
end sub
65
66