The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 Viewslooks cool the only problem I had was with jumping, possibly a problem with right or left plus the jump, i dont know, its like he wouldnt do both at the same time.
Im working on this and I was wondering if anyone would like to test it out and try to break it.
controls ->
on foot
arrow keys to move, a to enter vehicle, z to exit vehicle
red helicopter
basic
blue helicopter
(in air) z lowers winch, a raises winch
space to drop box
yellow truck
space bar to dump boxes
um yeah i guess thats it, other then flying forever upwards any bugs you find would help out lots.
say I have two points(which both can move), and I want to have a line joining them constantly, is there an easy way to do this in AS2?
well in your diagram it looks like theres only two directions you can be attacked from, left and right, if you want to spawn from above then just use the same idea with the y axis.
but if you wanted to say rotate your mc to always face the player then check out the tutorials in AS MAIN its full of this stuff
Xd =_root._xmouse-_x; //Get _x distance from gun to mouse
Yd =_root._ymouse-_y; //Get _y distance from gun to mouse
radAngle = Math.atan2(Yd, Xd); //Use atan2 to calculate the angle from gun to mouse
_rotation = int((radAngle*360 / (2*Math.PI))+90); //Use PI to calculate and set gun rotation
taken from a Denvish tutorial, just throw it in your enemy mc and change the mouse values to your player values.
well look at your diagram, it looks like you have it well planned out already, all you need to do is duplicate your enemy beyond the vcam,
enemymc._x = vcamx + Stage.width + 100;
if you dont know how to duplicate an mc then do a seach for AS MAIN in these forums theres a good beginner tutorial.
AS2 or 3?
i have it set at 32.
what are the custom games?
thanks alot Johnny, that worked great, thought it wasnt working untill i cranked the background stars up to about 1000, anyway, once again here it is this time with the FPS. I get about 30-31 in flash 8 and about 32-33 in the browser, thats with the 72 pngs.
sorry i dont know how to add an FPS display, I looked around but I really couldnt find anything good for AS 2, anyway I doubled the renders for this one, as you can see its twice as smooth since it has twice the images, first version had 36, this one has 72.
if I doubled the images again i could add photorealistic motion blur but that seems kinda excessive for just the rotation.
thats what i did, and theres only 36 images so it just looks choppy, i could just double it and it would probably be alot smoother.
does anyone think this kinda dynamic shadeing is worth useing? threw this together this morning.shade tester
arrow keys to move.
but he didnt tell you about xor, the exclusive or.
thanks that did work heh stupid mistake
for(a=1;a<10;a++) {
_root["enemy-2-"+a].removeMovieClip();
removeMovieClip(_root["enemy-2-"+a]);
}
these are supposed to remove the clips, but its not working for some reason and comeing up with 0 errors, what am I doing wrong, Ive seen other post both those methods in example, but neither works for me, Im useing AS2. could anyone help me out?
the instance name is correct and the MCs are duplicated at runtime.
well dont feel down man, once you learn one so many skills are transferable to another, its wayyy easier to learn c++ after learning all the basics. when i was in college first semester I was accually bored 90 percent of the time, it was just all learning syntax and a couple of new concepts.
I think my favorite programming achievement was understanding binary, lol it always seemed insanely difficult to understand, but turns out it was the easiest thing ever when explained the right way. Ill always remember that moment.
nice work, i like it. cant really say anything bad about it.
for(x=0;x<5;x++) {
// code
}
x starts at 0, as long as x is less then 5 the code will execute, x will increase by one each loop (also known as iteration), i know you didnt ask for it but heh its so damn useful. say for example hittesting a bunch of points in front of your car at difference distances.
qbasic is hardcore man, nibbles rocks, and who wouldnt be interested in going through 1000 lines of money management program
you need to learn the very basics of programming, there are many tutorials... for every open brace there has to be a closeing brace. this is why codeing is indented, you can look straight down from the open brace until you find the closeing one... if theres none it wont run.
is character the accual name of your movie clip? is your mc inside another mc? the names are case sensitive, so check that, is the instance name correct, also case sensitive,
that picture rools, open your own thread in the art forum man
wow random, but i have to ask, how can you unlock her car if she has the keys?
well since your variable names are like one letter i just briefly looked over your code, its really bad practice to do that btw, but your missing some ;;;;;;; hope that helps
ohhh wait i got it, its _root.player.mouth.gotoandstop(); etc,
you have just _root.mouth
since you made your mouth on your player MC
know what i mean?
this._rotation += 1;
rotates a MC by 1 degree