Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-Sonic-2-2013-Script-Decompilation
Path: blob/master/Sonic 1/Scripts/Mission/Gliding.txt
1482 views
1
// ----------------------------------
2
// RSDK Project: Sonic 1
3
// Script Description: Gliding 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 18 : MISSIONNO_AERIALATTACK
13
14
15
// ========================
16
// Events
17
// ========================
18
19
event ObjectUpdate
20
game.missionFunctionNo = MISSIONNO_AERIALATTACK
21
object.type = TypeName[Blank Object]
22
23
// This certainly could've just been done in just the ObjectStartup, but I suppose that was too much
24
end event
25
26
27
event ObjectStartup
28
// Find all Gliding Objects in the level and make them always active
29
foreach (TypeName[Gliding], arrayPos0, ALL_ENTITIES)
30
object[arrayPos0].priority = PRIORITY_ACTIVE
31
next
32
end event
33
34
35
// ========================
36
// Editor Events
37
// ========================
38
39
event RSDKDraw
40
DrawSprite(0)
41
end event
42
43
44
event RSDKLoad
45
LoadSpriteSheet("Global/Display.gif")
46
SpriteFrame(-16, -16, 32, 32, 1, 143)
47
48
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
49
end event
50
51