Search:
Type: Posts; User: gukinator
Search:
Search took 0.06 seconds.
-
Heres a quick example i wrote that just has a simple ball bouncing off the bounding walls of the stage, you should be able to modify your code using my attached .fla as reference
-
Since each tile is placed dynamically, i can't place code on the mc without replacing attachMovie with duplicateMovie. If i were to do this, flash would have to create a new thread for each movie...
-
So I'm programming a (hex) tile based game, and after running the drawHexMap function shown here with drawHexMap(map1, storageArray, 30, 50, 50)
The storageArray array is filled with the pointers to...
-
i think im not explaining myself clearly
im getting random array indicies, i was using round to get an integer instead of a decimal value but i dont need to any more since im not using...
-
why? later in my code i have an if statement that returns true all of the time
if (mainArray[i-1][j] == 'X' && mainArray[i][j] != 'X') {
mainArray[i][j] += 1;
}
ive found that " and ' are...
-
heres the code again, it had a few errors sorry
for(var i = 1;i<=bombs;i++){
var randNum1 = random(10)+1;
var randNum2 = random(10)+1;
if(mainArray[randNum1][randNum2] != "X"){...
-
nstaniani, flash has a built in random function to simplify things
Math.round(Math.random()*3+1) generates a number between 0 and 1, then multiplies it by 3 and adds one, then rounds it to the...
-
var rand = random(3);
if(rand == 0){
goto #1
} else if(rand ==1){
goto #2
} else if (rand ==2){
goto #3
}
no other way that i know of
-
i have this code
var bombs = 10;
mainArray = new Array();
for (var i=1; i<=10; i++) {
mainArray[i] = new Array();
for (j=1; j<=10; j++) {
mainArray[i][j] = " ";
-
since ur using a gotoAndPlay, onEnterFrame will make it act like a gotoAndStop, because it will be repeatedly going to that frame, just remove the functions all together, change
onRollOver =...
-
well this might be your problem, if(!upclose) means if(upclose == false)
so the first if statement (minus the tweening code) says
if(upclose == false){
upclose = false;
}
that would...
-
im making this optical illusion in flash
http://boomeryearbook.com/blog/wp-content/uploads/2009/03/cafe-wall-illusion_online-optical-image-n.jpg
i have the actionscript down but im stuck on the...
-
sorry i dont think i know enough about arrays to answer your question :/
but i will bump this thread so maybe someone else can anser
-
http://www.actionscript.org/resources/articles/760/1/Simple-reflection-effect-with-AS2/Page1.html
dont forget page 2
-
you can as far as i know ive done things similar to what you did but i--
or start with i as -100 or something, calling menuitems[-10] or something (if you put that in) would work fine. so to answer...
-
oh, i get it now. try this
box1.onPress = function() {
n++;
Name = "dup"+n;
duplicateMovieClip("box1", Name, n);
startDrag(Name, false, 0, 0, 550, 483);
for (var i = 1; i<n+1; i++) {...
-
i mean on this board, when you post code put [ PHP ] (without the spaces) before your code and [ /PHP] (without the spaces) after your code
that code i posted should fix your problem, does it...
-
please use the php tags for code segments
its a depth issue
box1.onPress = function() {
var dupBox1 = box1+1;
duplicateMovieClip(_root.main.box1, "(dupBox1)",_root.getNextHighestDepth());...
-
are you sure blurFilter works in flash lite 3.1? ive looked around on some adobe resources and it keeps saying its not supported:
...
-
can someone tell me how its possible to get this kind of hitTest?
http://www.kongregate.com/games/ChronoBell/leading-edge
it just seems so perfect, is it tile based?
-
yeah it seems that for some reason it keeps looping the gotoAndPlay. to fix it, replace the code on the frame with
onLoad = function(){
t1.gotoAndPlay("s");
}
-
i dont really know what your asking but i can see that you have your gotoAndPlay script in an onEnterFrame function, meaning that the program will loop that gotoAndPlay, making it act like a...
-
sounds like a depth issue
circle.duplicateMovieClip(circle,"circle",1)
circle2.duplicateMovieClip(circle2,"circle2",2)
make sure the number at the end of the duplication codes (the depths)...
-
i dont know what flash lite is but i have used the blurFilterClass before and you need to import the class to be able to use it
import flash.filters.BlurFilter;
-
myIndicator_mc.swapDepths(canvas);
|
Click Here to Expand Forum to Full Width
|