Sign in to follow this  

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.