Results 166 to 180 of 306
-
December 20th, 2004, 11:32 AM #166
Yeah, I did that first with those tiles, but i didn't have a chance to understand! I didn't see where to put the script etc. If you could help me and explain a bit i would be greatful. Thx in advance.
-
December 20th, 2004, 11:51 AM #167
Basically, almost all your code is going to go in the root of your movie - first frame.
If you pull up my tutorial, page 6, you'll see that I have some variables defines right away:
After that, you need to define all your Tiles:Code:mvWdth = 576; //this is just the Width of your Movie mvHght = 576; //...and this is its Height tileWdth = 64; //This is your tile's width - they should ALL be the same size. tileHght = 64; //...and your tile's height.
Each of your tiles should have a similar declaration, each with a different number (tile0, tile1, tile2, tile3, tile4, etc...). Generally, 'pos' is 1 higher than the tile's number.Code:tile0 = function () {}; tile0.prototype.pos = 1; //this is the Frame Number that the picture of this tile is in. In my example, this is my Grass tile. tile0.prototype.barrier = false; //Grass is not a barrier, so this is false.
I'll add more in a minute, have to run out real quick.
-
December 20th, 2004, 12:09 PM #168
okay... but i havn't photoshop so i dont know how big my tiles are bacouse i made them in paint
-
December 20th, 2004, 12:25 PM #169
I used paint to make mine, as well... Go to "Image > Attributes", and it will tell you the size.
Okay, so once you have all these tile declarations, you can make your map, which should look just like what my tutorial shows, except use your tiles. For instance, if "tile0" is a dirt path tile, that you made, then everywhere there's a "0" in the map matrix, it'll display the dirt path picture, and treat it as whatever you have "tile0" set. You want to make you map matrix be big enough to hold your tiles. So, if you plan on making tiles that are 10 X 10 pixels, and you want 20 tiles across, and 15 tiles down, than your movie has to be 200+ pixels wide, and 150+ pixels high, and your map matrix should be something like this:
Keep in mind that this is all based on your setup.Code:map=[ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
Let me know if this makes sense, so far.
-
December 20th, 2004, 12:32 PM #170
Thank You!!! I know now everything! But the bad thing is: I am at my mother's house! I cannot work! But now it make sense to me.
EDIT: Now i'm going to the other computer and gonna work with flash there, but it's just Flash 5. It works, right?
Coming back soonLast edited by RyxiaN; December 20th, 2004 at 12:36 PM.
-
December 20th, 2004, 12:34 PM #171
-
December 20th, 2004, 01:18 PM #172
where is your tutorial? can you link it because i need it
-
December 20th, 2004, 01:28 PM #173
You can find it here: http://www.kirupa.com/developer/acti...rogramming.htm
For some reason, it seems like my server is acting up... I'm not at home, so I can't really check it.
-
December 21st, 2004, 03:42 AM #174
But it doesn't work at Flash 5, right? Because there is no "Export for ActionScript" in the "Linkage..."
-
December 21st, 2004, 09:18 AM #175
-
December 21st, 2004, 09:25 AM #176
Export for Movie
Export for Movie Clip
No Linkage
I think!!!! I dont have internet on my flash computer...
-
December 21st, 2004, 10:57 AM #177
I think that the linkage thing is new to FlashMX2004. You can download the 30-day demo of MX2004 from http://www.macromedia.com
-
December 21st, 2004, 10:58 AM #178
but I like just MX
But i can just download 2004 (not trail) on DC++...
-
December 25th, 2004, 03:40 PM #179
Just want to keep a ***** [Five Star] tutorial alive!
-
December 25th, 2004, 04:07 PM #180
if DC++ is what I think it is from the context of that you need to see this:
source
Originally Posted by lostinbeta
Build a man a fire and he is warm for a day.
Set a man on fire and he is warm for the rest of his life.

Reply With Quote
Well, at least until Kirupa gets the next 2 pages up on the site.... then all bets are off... 

Bookmarks