Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_collectible_Collision_obj_susiezilla

(view raw script w/o annotations or w/e)
1
if (other.height > 5)
2
    exit;
3
if (jump == 1)
4
    exit;
5
if (timer < 20)
6
    exit;
7
var _score = 0;
8
if (itemtype == 0)
9
    _score += 50;
10
if (itemtype == 1)
11
    _score += 100;
12
if (itemtype == 2)
13
    _score += 200;
14
if (itemtype == 3)
15
    _score += 400;
16
if (itemtype == 4)
17
    _score += 500;
18
if (itemtype == 5)
19
    _score += 750;
20
if (itemtype == 6)
21
    _score += 1000;
22
if (itemtype == 7)
23
    _score += 1200;
24
if (itemtype == 8)
25
    _score += 1500;
26
if (itemtype == 9)
27
    _score += 2000;
28
obj_susiezilla.susiezilla_score += _score;
29
var xx = 40;
30
if (obj_susiezilla.image_xscale == -2)
31
    xx = -40;
32
scoretext = instance_create(x - (string_width(string(_score)) / 2), y, obj_susiezilla_collectible_text);
33
scoretext.score_text = _score;
34
instance_destroy();
35
snd_play(snd_coin);