Jump to content

Reusing groups?


Recommended Posts

I now continued my td city driving game. Other cars are made with group. When they pass topline, they are killed. How I get them to appear again from bottom?

I tried to follow example, but it does not work.

    var enemycar = this.enemycars.getFirstExists(false);

    if (enemycar)


Link to comment
Share on other sites


did you try reset? If your sprites are above top and continue that way then even after reviving them they won't change their position unless you change it. So just give them the new position. Btw if you revive them before changing position don't forget to make sure that you don't kill them again before you move them.

Did it help?

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...