| Welcome to Brackenwood. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Timer Function; Help, it doesn't work. | |
|---|---|
| Tweet Topic Started: Mar 21 2006, 01:43 PM (149 Views) | |
| Catalist | Mar 21 2006, 01:43 PM Post #1 |
|
Brackenwood Member
|
Ok, here's the deal. I'm working on a small game, and the first step is going to be this, the timer. I've made a little script that turns my imput in seconds into frames, and the movie is running at 36 fps. so every 2 second is 24 frames, or -1 from every 12 seconds. I'm doing it this way because the game is to have no real value, but only that of helping me learn. And right now I don't really want to get into setInterval. So, now that I've explained it, could someone help me figure out why this doesn't work. I have a bar, 5 pixles high and 1 wide, with the registration point on the left. but this doesn't make the bar the correct width.
36 being the fps, 530 being the area I would like the bar to take up at the most. I'm still not quite sure how the time will deteriorate, but I will figure that out. Right now I just want to know why the bar will now become longer... Thanx if you can help.
|
![]() |
|
| Mr. Jiggmin | Mar 22 2006, 05:10 AM Post #2 |
|
made of tulips
|
I'm not exactly sure what you're trying to do with all of those text boxes in your code, but maybe this will help:
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Actionscript · Next Topic » |






5:11 AM Jul 12