|
-
Software Developer
[Complete] Target Practice
I have been making some small games learning about different aspects of flash, here is my latest game (Target Practice).
I still need to learn how to make flash work with PHP. I tried some methods last night but didn't work exactly the way I wanted it.
Currently this version doesn't keep any highscores or anything I will be adding that later.
Since this version is a beta, can you guys let me know how the game runs and if there are any bugs. (And yes I know it is very simple, just try and look past that )
Gamestack.org - Target Practice Game
* Edit, you will need atleast flash player 8 to play this game.
Last edited by mickm; 10-14-2006 at 01:54 AM.
Reason: Updated game link
-
Senior Member
People rarely bother to test zip files. Maybe you could upload the swf+html into some temporary site so it can be tested just by clicking the link.
-
I like it! It runs fine. One thing you could change to make it more challenging is adding extra points if you hit the target in the black spot, you know, the inner center
Nice
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
-
Senior Member
WAH! I scared after i hit the first .. Nice.
Add negative points for hitting nothing
-
Nice work, mickm!
One thing: it seems overlapping targets are destroyed with one hit. If I hit the top target, any target underneath, even if only partially overlapped, is destroyed also. This isn't a bug, just a gameplay comment.
-
Software Developer
Hi,
First off thanks for all the replies.
robertinho7
One thing you could change to make it more challenging is adding extra points if you hit the target in the black spot, you know, the inner center
Thanks for the feed back, I have now created it so when you hit the target in the black (middle) it doubles your points. It also goes the same for the red targets (you will get -100 points now).
X-Tender
Add negative points for hitting nothing
I will look into adding this request. It will make the game harder.
azukizer0
If I hit the top target, any target underneath, even if only partially overlapped, is destroyed also
I will see what I can do about this, I am not sure how I would handle this problem though as I am using a hitTest and I am not sure if it is because I am just looping through my duplicated movie clips and checking for "hitTest".
I will put an update on later tonight and hopefully there's some more bugs/enhancements that you guys/girls can find.
-
Senior Member
Use math fot checking the "hit"
dx = target._x - _xmouse;
dy = target._y - _ymouse;
radius = Math.sqrt(dx*dx+dy*dy);
then you check if the radius is < 20 (or the width of you MC Divided by 2) and if tahts true you have hitted it
important taht the 0,0 point of you targets is in the middle. not on the top left corner or something like that
-
Software Developer
 Originally Posted by X-Tender
Use math fot checking the "hit"
dx = target._x - _xmouse;
dy = target._y - _ymouse;
radius = Math.sqrt(dx*dx+dy*dy);
then you check if the radius is < 20 (or the width of you MC Divided by 2) and if tahts true you have hitted it
important taht the 0,0 point of you targets is in the middle. not on the top left corner or something like that 
Thanks for that, it was way better than what i was doing, now the center hits are much more accurate.
-
I really like this. Instead of decreasing points for hitting blank space, you could knock the timer down 2 seconds or something.
-
Please, Call Me Bob
seems to run perfectly fine for me, as for solving your 2 hits in one problem, it seems to me that you could run a script to check which targets the mouse hits, then compare there layer values, and then figure out using some other coding...err, let's see if i can write it down correctly
Code:
foo = 0;
layervalue = -100000000;
hit = nothing;
while(foo<targetsonscreen)(
if(keyIsDown(1))( if(Math.sqrt(Math.pow(_xmouse-this["mc"+foo]._x,2)+Marg.pow(_ymouse-this["mc"+foo]._y,2)( if(this["mc"+foo]._layer>layervalue)( layervalue = this["mc"+foo]._layer;
hit = "this["mc"+foo]";
);
);
);
foo++
);
<do whatever>
that's an example of my idea, and if it's correct, it would have the name of the hit target stored in the variable "hit", so... does it work?
-
Software Developer
Moldorma
Instead of decreasing points for hitting blank space, you could knock the timer down 2 seconds or something
I have added this. It puts a good spin on the game.
Now becacase your time can go down I also added another target (green) to increase your time by 2.
trogdor458
Your pseudocode works fine, i was able to get it to work, just only with a few bugs, so i reverted it back so that bug still exists until i can fix it.
The game is now updated with the requests and bugs. I have also removed the sound until i can find a more suitable one.
The game is in the game location as in the first post, or see below.
Gamestack.org - Target Practice Game
Last edited by mickm; 10-14-2006 at 01:52 AM.
Reason: Updated game link
-
Well, I thought the overlapping hits was actually a feature! I would actually leave it that way. Nice game
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
-
Software Developer
First off, thanks to everyone that replied. The game is now online and ready to play. This is my first game to included a highscore so I am sure there are some bugs.
If anyone wishes to play the completed game itself you may do so by clicking on any of my game links above, or this link below.
Gamestack.org - Target Practice
-
Truimagz.com
very cool I like it alot, one thing I noticed though after playing it quite a bit, is that while playing at the same skill level my score depended heavily on the luck of what circles dropped.
Were as one time I would get 2K score and then another time only 1100 but playing just as skillfully, just had a bad luck of the circles that dropped.
This is a bit discouraging with a game like this as it seems that the more skillfull you got the better you would score.
Maybie think about making sure the same # of greens and greys and reds, and yellows drop each game, just in a different order and location.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|