A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: is there a better way to do this sort of thing?

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Posts
    225

    is there a better way to do this sort of thing?

    it seems so ineffecient...

    Code:
    	if (aTime>0) {
    		aTime--;
    	}
    	if (dTime>0) {
    		dTime--;
    	}
    	if (stamina<100) {
    		stamina++;
    	}
    	if (stamina<0) {
    		stamina = 0;
    	}

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Looks good, not much you can do to improve it.

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