Jump to content

TileSprite missing Sprite features?


Recommended Posts

I'm not sure if this is deliberate or not, but it seems from doing some Googling that TileSprite used to contain the alive property and the kill(), revive() methods, but no longer does.  Is there any way to easily merge the TileSprite and the Sprite classes so I can have the tiling ability with the kill() revive() methods, and the alive property?


To explain a little clearer why I'm after this, I have "flood water" that periodically appears at the bottom of my game.  To avoid repetition in the artwork, I've made the asset 50 x 125 pixels in size, and then used a TileSprite to repeat it horizontally over an 800 pixel wide game area.  This works really nicely, but I want to be able to kill and revive it as I need it.  Am I going about this the wrong way maybe?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...