wouldnt it be cool if flash had a code that delays the next line of code for a specified amount of time? I know this can be done by coding it, but something like startDelay (3) would be easier than making a timer.
Printable View
wouldnt it be cool if flash had a code that delays the next line of code for a specified amount of time? I know this can be done by coding it, but something like startDelay (3) would be easier than making a timer.
or wait(), like in java.
It's pretty easy to just make a prototype with a callback though, and once written you can use it forever more.
Squize.
If You construct Your game in main()-loop, it wouldn't be hard to make a on wait()-function. But when You run each movieClip on their own on(enterFrame), of course it would be almost impossible to create such wait-function...
so
1) Learn to build games in single loop, where they're controlled
2) Make own Wait() -function
I can make a if statement loop with a counter and then play the code inside the if for seperate movie clips.
Yeah but that's a really poor way of doing it, 'cause it means each seperate mc is running a conditional check all the time, when 99% of the time it won't be needed ( It's like doing a check for pause that way ).
Squize.
I Know, which is exactly why I wont use it. I just needed this on a button, but I can just put the code inside a empty movie clip and put it a few seconds in the MC to give it the delay effect whenever someone clicks the button. Just saying if they had it in flash it would simplify some things.
Actually Flash already simplified some things, that's why people don't do any mainloops, because it's much simplifier to make it with on(enterFrame).Quote:
Originally Posted by The_Mercenary
"startDelay (3)", yeah, would be nice and very convenient, for me atleast, less coding.
wouldnt it be cool if flash had... ... more speed.
I use very often my own delay function. (based on pasted frames) and is quite easy...
speaking of delays, how do I put an interval in between bullets?
You know what would be more cool? If flash actually supported a Z-Axis so we wouldn't have to fake 3d.
This is off topic, but you would have a shooting variable, and when it shoots, the MC plays and shooting turns false. But when the MCis on its first frame, stop it and make shooting true.Quote:
Originally Posted by R1TAL1N
It would be nice if flash was amazingly sped up, twice the speed would be nice. :rolleyes:
Id like some simple things like if you cut some code from one part and want to put it somehwhere else, say inside an mc, but in that mc you also want to paste a graphic you have to cut also, be nice if code and graphics etc were cut differently so you could just cut the code and the graphic and then paste them one after the other, yep im lazy. :p
Its the small things that need to be incorporated.
Lol, kakihara, i have the same lazy problem ;)
Ali
I've seen Flash 8 speed up one thing from about 1-2 fps to 120 fps. Nice.Quote:
Originally Posted by Kakihara
I stll want that z-axis, for a program that costs 700 ducats, there should be z-axis support.
Hmm, a dynamic fps changing method, something like:-
So you can specify defferent fps to different objects, will help a lot in bullet time effects.Code:_root.setFPS(30);
Gonna check that fp8 beta, many people seem to be divided about the speed.
I think you only get a speed boost on stuff that's compiled specifically for it.
SQUIZE can you give a example of how to do thisQuote:
Originally Posted by Squize
I'm so busy atm it's untrue, but if no one beats me to it I'll try and knock something up later today, tomorrow.
Won't be all that though, 'cause there's nothing to it.
Squize.