Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do you hide a sprite in codea?

edited May 2013 in Questions Posts: 23

I have no idea



  • Posts: 563

    You could either just not draw it in the draw loop (best solution) or makes it transparent (i.e. alpha = 0), in which case you would still be drawing it but it would be invisible.

  • BriarfoxBriarfox Mod
    Posts: 1,542

    Or you could draw it off the screen! @reefwing 's suggestion with not even drawing it is the best solution.

  • IgnatzIgnatz Mod
    Posts: 5,396

    Codea redraws the screen 60 times a second, so anything you put there doesn't stay there unless you keep redrawing it.

    So hiding a sprite is as simple as just not deciding to draw it, as reefwing says

  • Posts: 5

    Can be a little confusing for anyone coming from an OO based game environment where Sprites are objects with a life of their own that can be programmed to move and alter between frames.

    In Codea the sprite function means to copy an image from a file or an Image object onto the screen.

Sign In or Register to comment.