Hi there,
Without more details about the mechanics of your game (is it a top-down game, platformer or other?), I would suggest you add the LineOfSight behavior to your enemy sprite. Adjust the pixel range in the properties menu and add this event:
If Enemy has LOS to Player =>
(Sub-event) Every X seconds => create bullet; set bullet speed, angle and so forth...
Hope this helps!