Sign in to follow this  
Sacer

Adding objects to existing group

Recommended Posts

my idea is quiet simple: I've got an spritesheet of characters so I get an non antialiased font in my game and want it to "type" (like in pokemon).

 

So my main idea is: I have an font-object with the give spritesheet and every character is within a 9x9 pixel frame. with the give char I'll have something like this:

var string = "foo";for(i = 0; i < string.length; i++) {   this.char = mt.create('font');   this.char.setFrame(this.getFontFrame(string[i]);   setTimeout...blablabla}

But that's quiet bad when I want to clear the typed string. It would be better to add each object to a group and later delete all children within this group.

I looked at some phaser examples but couldn't get it working in ME :/

someone got a hint for me?

Share this post


Link to post
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.

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

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.