dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Ladder gfx tonypa style

  1. #1

    Ladder gfx tonypa style

    I need to know how to make two or three different ladder grafics, this is from the Tonypa tile based games stuff.

    I did this
    code:

    ...
    game.Tile15.prototype.lframe = 2;
    ...


    lframe stands for ladder frame.

    and inside the if(game[name].item != undifined) {.... part in the buildMap function...
    code:

    ...
    game[name].item.gotoAndStop(game[name]["item"].lframe);
    ...


    to tell what ladder frame to show

    Please tell me waht I am doing wrong

  2. #2
    Originally posted by tonypa
    game[name].item.gotoAndStop(game[name].lframe);
    should work.
    yeah, i got it working, I think I had to do
    code:

    if(game[name].item != undinfined and game[name].lframe) {...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center