View Full Version : the GAME so far... (50%).. need help !!
divtag
06-09-2003, 12:16 AM
hi guys.. im stuck halfway on this game.
here is the link to the game: just click "interact" in my homepage
to get to the game.
The GAME , CLICKY CLICKY (http://ddzine.net-factors.no/)
i REALLY need help with 4 things :
1. HitTest ( so when i crash in the cavewalls, i CRASH... not just fly through )
2. Score. ... how far the rocketman has gone
3. Randome obstacles, just some plain vertical walls inside the cave
4. Top 5 list ( top score )
im about to go absolute bonkers over this game....
PLEASE help !!!!...............someone ?...ANYONE??????
( this is the game im trying to make my own version of :
http://www.seethru.co.uk/zine/south_coast/helicopter_game.htm )
regards
Tor
Colin Campbell
06-09-2003, 02:05 AM
argh! I saw this somewhere. I'll try and find it for you... try look at www.sitepoint.com in the flash section, I'm pretty sure there was a tutorial on making two clips colliding...
howdy, nice looking game, as you can see, ive spent all my time making it work, and not making it look good =)
http://www.dinosdomain.com/flash/game.html
you can simply use hittest between two mc's, like
if ( wall_mc.hitTest(rocketman._x, rocketman._y, true) ) {/stuff;}
but ive found that only takes the center x and y coordinates for the rocketman to compare to the content of the wall_mc movie clip.
So i use this.
function hit( a , b ) {
if ( ((a._y + a._height/2) > (b._y - b._height/2)) && ((a._y - a._height/2) < (b._y + b._height/2)) && ((a._x + a._width/2) > (b._x - b._width/2)) && ((a._x - a._width/2) < (b._x + b._width/2)) ) {
return (true);
}else {
return (false);
}
}//end hit
its kinda long and boring, but you should get the idea.
For the score, I just do
this.onEnterFrame = function() {
timer++;
}
then just spit out timer as the score when they die.
For obsticles, I just made a simple mc with a log as its content, named it wall1, and another one 1/2 the width, named wall2.
then, i would do,
if (timer%50 = 0) {
wall1._x = (random(500)) + 100;
wall1._y = 0;
}
then i would set wall2 for timer%100 = 0
this would just move the wall back to the front after a certain time. and the +100 is just the offset so it starts 100 from left then random 500, so its 100-600 range.
Now a highscore board has been bugging me forever too, one of the first things i tried to get working, and never did. I can read from a txt file on the web using loadVars(url);
but when someone beats the highscore i cant update the highscore table without learning some pearl or php or something.
heh i acutally made my log game after that copter game too, but it was based off the race game so i did the log type thing. Your game looks great, hope I helped, if any of it was confusing plz let me know.
divtag
06-09-2003, 08:52 AM
thank you Dino !! :)
i will use this day to gather information and tips from
every forum i have posted in, you gave by far the
longest answer yet :D
thank you again for your
time and that you are willing to help out !!
i'l get back to you as soon as i have tryed out this new info.
regards
Tor
divtag
06-09-2003, 08:53 AM
colin14, thanx.. :)
i'l check that out.
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.