[SOLVED] Draw sprite dynamically

It’d be awesome if you could draw sprite from event sheet (with given alpha, scale, at given position, rotation, etc) without putting any object with that sprite in the scene. (I mean something similar to GameMaker which allows this through draw_sprite_* functions in draw event of any object)

Something like

SOME_CONDITION … Draw Sprite SPRITE_RESOURCE at X, Y WITH 50% OPACITY, X degree rotation, XSCALE, YSXCALE, RGB TINT.

(and it’d draw if that condition matches only, no need for collision mask either)

That just sounds like a combination of a create object event action, followed by a scale, opacity, rotation, and tint actions. Those are already in the engine.

The only thing you have to do is set up the base sprite objects, you don’t have to add them to the scene beforehand.

1 Like

yeah that can always be done i feel a bit stupid now. :sweat_smile: