sPipe
0
-1
-3
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
///Initialize
active = -1;
image_speed = 0;
frame = 0;
angle = 0;
1
603
7
0
0
-1
2
self
0
0
1
///Be active
frame = clamp(frame + (active * (1/4)), 0, image_number);
1
603
7
0
0
-1
2
self
0
0
1
///Toggle active
if(Mobile) {
with(Controller) {
virtual_key_delete(virt_key_down);
virt_key_down = virtual_key_add(other.x - view_xview[0], other.y - view_yview[0], other.sprite_width, other.sprite_height, vk_down);
}
}
if(input_check_pressed(I_ACTION)) {
active = -active;
audio_sound_gain(audio_play_sound(aSqueak, 0, false), 0.8, 0);
}
1
603
7
0
0
-1
2
self
0
0
1
///Choose colour and draw self
var inst = instance_position(x, y + 33, Wall) {
if(inst != noone) {
image_blend = inst.image_blend;
}
}
draw_sprite_ext(sprite_index, frame, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
1
603
7
0
0
-1
2
self
0
0
1
///Draw the controls when touching the player
if(place_meeting(x, y, Player)) {
angle = (angle + 8) % 360;
draw_set_color(image_blend);
draw_set_font(fControls);
draw_set_halign(fa_center);
draw_text(x, y - 32 + floor(sin(degtorad(angle)) * 5), DOWN_CHAR);
draw_set_halign(fa_left);
}
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
0
16,0
16,16