-
tutorials needed
hi, i am trying to make an above-view tank game. the only thing that i have made so far is a tank that moves by keypress. now i need to know how to make walls that the tank its bullets(once i make them) cant go through. does anyone have a tutorial i could print out so i can learn it whenever i have free time at school? i know how to do neither, but should i use hitTest or like a tile-based game? how does a tile-based game work? can i get a good tutorial for that to print out? the one edmacks site is broken up and is hard to print out even tho im still looking into it...thank you.
-
Take a look at the turtorial section of Flash Kit. There's a turtorial about a spaceshooter, which also handles shooting and hitTest.
People, first search yourself before posting threads like this!
-
i hate you.:rolleyes:
well anyway i printed up tile based games tutorials at Ed Mack's site(Mario Part 1-8). Right now im at number three but im not understanding exactly how this code works(what it does):
this.attachMovie("empty","cont",1);
for(y=0;y<map.length;y++){
for(x=0;x<map[0].length;x++){
var t="tile"+x+"_"+y;
cont.attachMovie("tile",t,d++);
cont[t]._x=x*tile_width;
cont[t]._y=y*til_height;
cont[t].gotoAndStop(map[y][x]);
}
}
so?:D
-
Hey Psytrix,
The best answer I could give is well ill explain it and then ill tell you some parts of a tut that would work. I would make a fla for you but I have no time today. But if you can wait a couple days ill make a fla for you. Any way....
Explaination:
You will want a bullet instance that has a linkage to be exported into actionscript.
Then when the player pushes the button the bullet instance is created at the x and y pos of the character and assends the direction of the x or y you want it to go.
Tuts:
Like Baukereg said the space shooter would have some parts that would help you in it. I read Ed Tuts before too before when I started and they were hard to understand so I would go by some simple tuts in flashkit.
Regards.
-
i need a link to that tutorial, i was looking for it...
http://www.flashkit.com/tutorials/Ga...-610/index.php
is that it? well i need the URL to the "part 1" of that tutorial, but i cant find it :(
i wonder wut country Baukereg is from.
:)
-
Yep, that's the turtorial. It explains everything about duplicating bullets and let them move. That turtorial learned very much to me, when I started creating games in Flash.
The turtorials of Ed are tile-based. So you really have to make a choose for tile-based are art-based. Tile-based is good when you want to use huge worlds, but it needs a lot more actionscript.
The choose is yours! :D
-
tile based is the obvious choice but edmacks tutorial is hard to understand at times, do you know of a better one?
i need the "PART 1" part of that tutorial that i provided the link for earlier, but i cant find it!!!!:(
:confused:
-
-
YES! thanks, that will help me a lot.
grow and prosper