ludum-dare-21/objects/obj_particle/Draw_0.gml

15 lines
436 B
Plaintext

image_angle += 2 - image_xscale;
if swaps = 0
image_alpha -= .02
if swaps = 1
image_alpha += .02
if image_alpha <= 0
swaps = 1
if image_alpha >= 1
swaps = 0
if (y > __view_get( e__VW.YView, 0 )+__view_get( e__VW.HView, 0 )+40 or y < __view_get( e__VW.YView, 0 )-40)
and (x > __view_get( e__VW.XView, 0 )+__view_get( e__VW.WView, 0 )+40 or x < __view_get( e__VW.XView, 0 )-40)
instance_destroy();
draw_self();