A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: A Dynamic Text Question

  1. #1
    Junior Member
    Join Date
    Aug 2015
    Posts
    26

    A Dynamic Text Question

    So I want to add a dynamic text that acts as a score. You collect something the score goes up by 1 and reverts back to zero if you get hit. I'm able to get the dynamic text inside a Vcam and a default number, but I simply can't get it to go up. Here's the code,

    var ringCounter = 1;

    so how do I get it to increase and decrease? I just can't get it to change, I tried

    _root.ringCounter += 1;

    and even this

    Rings1.onEnterFrame = function() {
    if (Son.hitTest(this)) {
    ringCounter += 1;
    }
    };

    but nothing changes the number. I placed the _root line in a few movieclips (dying works just fine) but nope, is the dynamic text suppose to be outside a movieclip?

  2. #2
    Junior Member
    Join Date
    Aug 2015
    Posts
    26
    I got this fixed, and I just need the character to "not" die when the number goes up.

Tags for this Thread

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