Monday, December 2, 2013

Flip 3D - LoopEntityModifier And SequenceEntityModifier

Để một Sprite có được hiệu ứng 3d bạn làm như sau :
  1. yoursprite.registerEntityModifier(new LoopEntityModifier(
  2.  new SequenceEntityModifier(new DelayModifier(0.3f),new  ScaleModifier(0.5f, 1.0f, 0f, 1.0f, 1.0f, new  IEntityModifierListener() { 
  3.       @Override 
  4.       public void onModifierStarted(
  5.           IModifier pModifier, IEntity pItem) {
  6.           } 
  7.       @Override 
  8.       public void onModifierFinished( IModifier pModifier, IEntity  pItem) {
  9.           } 
  10.  })  
  11.  , new ScaleModifier(0.5f, 0f, 1.0f, 1.0f, 1.0f),new DelayModifier(0.3f))));
Giải thích 1 chút :
 - LoopEntityModifier dùng để lặp một Modifier.
SequenceEntityModifier được dùng để thực hiện các modifier một cách liên tiếp : nó sẽ thực hiện hết modifier này đến modifier khác.

18 comments:

  1. I guess you are a smart cookie because of your knowledge and insight.They are my cup of tea.I want to thank you for sharing.
    facebook live chat help facebook chat box, autoketing app

    ReplyDelete
  2. https://autoketing.com
    Shopify free shipping bar app
    Shipping bar shopify
    This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great.

    ReplyDelete
  3. Your article is very interesting.t's very nice of you to share your knowledge through posts.I wish you can update articles often. Thank you for sharing what you know
    Discount master app, Product discount master, autoketing

    ReplyDelete
  4. It’s the best time to make some plans for the future and it’s time to be happy.
    autoketing.com
    email app download
    email with love by autoketing

    ReplyDelete
  5. People should know more about your article, it's really great, it's worth the time to read it.
    currency converter master, currency converter box by autoketing, best autoketing app

    ReplyDelete
  6. Nice blog and absolutely outstanding. You can do something much better but i still say this perfect. Keep trying for the best.
    friv10games club free online juegos, kizi-2018 games online, gogy xyz play now

    ReplyDelete
  7. Good day. I discovered your online journal utilizing msn. They are really useful and intriguing. I am looking forward on your next post, I’ll attempt to get the hang of it!
    abcya3 game free motox3m3 games Games of gogy

    ReplyDelete
  8. I every time spent my half an hour to read this weblog’s content all the time along with a cup of coffee.
    Shell Shockers Game
    The-light-temple-fireboy-and-watergirl-2 Game
    Sling-drift Game

    ReplyDelete
  9. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done
    madalin stunt cars 2 club 2 player , juegos the world cup soccer 2018 club , geometry jump club free online ,

    ReplyDelete
  10. Games xmas magic tiles
    Truck physics free
    Gunmaster onslaught games for kid
    Hi, I check your blog like every week. Your humoristic style is witty, keep it up! I am really enjoying the theme/design of your website.
    Do you ever run into any web browser compatibility issues? A couple of my blog visitors have complained about my website not working correctly in Explorer but looks great in Chrome. Do you have any ideas to help fix this issue?

    ReplyDelete
  11. You are very cool! I dont suppose I have read something similar to this before. So nice to search out somebody with authentic applying for grants this subject.
    mr dubstep online , moto x3m 4 winter best online games , santa claus jumpgames to play ,

    ReplyDelete
  12. I have read all your articles. I'm full of the joys of spring when see your new posts. When I was facing problems, I read your articles.thanks for the post.
    Mommy Elsa Baby Caring game for girls Splishy Fish game for free Tomb Runner free game

    ReplyDelete
  13. These articles are exactly what I need..They are really good for everyone. Of course, I wish that you will write and share many posts. Do you know that I wait for them?
    online game Real Flight Simulator online game Def Island Kick The Buddy online game

    ReplyDelete
  14. You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing
    game cars simulator , nighty knight free , fnaf world best online games ,

    ReplyDelete
  15. I think that I'm into your pieces of writing. I wait for your posts every week. I learn many new interesting things from the articles. The information is essential for me. I want to thank you for sharing
    miniclip 2019, a10 best free online game, Jogos para crianças 2019

    ReplyDelete
  16. friv 4 game
    2player games for kids
    io jogos for kids
    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.

    ReplyDelete


  17. food games online
    basketball free game
    soccer games online
    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.

    ReplyDelete

  18. Barbies Sexy Bikini Beach
    Glorious Golfer
    Basketball Online
    I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . .

    ReplyDelete