Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_collectible_Collision_obj_susiezilla_player_hitbox

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