Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-23-2002, 03:44 AM   #1
Cheechman
Registered User
 
Join Date: Apr 2002
Posts: 8
Default Game

I'm working on this really cheesey game in flash. Just something I want to get going in order to later turn into something more interesting and fun. It's basically an archer who shoots at an object. My only problem is that I can't get the code right so that when the arrow hits the object it detects a collision. I've tried many things and none of it has worked and now basically I have a mess. I was wondering if anyone would be kind enough to take a look at it for me (I'll send the .fla). I'd greatly appreciate any help. Thanks.

You can either reply here or send me an email:

Cheech5225@aol.com
Cheechman is offline   Reply With Quote
Old 04-23-2002, 09:00 AM   #2
mozilla
mimi
 
mozilla's Avatar
 
Join Date: Jun 2001
Location: the fruhling
Posts: 161
Default

you have the possibility to either post your fla or post the code you have sofar. that way everybody can profit of your learning process...

MOZ
mozilla is offline   Reply With Quote
Old 04-24-2002, 12:06 AM   #3
Cheechman
Registered User
 
Join Date: Apr 2002
Posts: 8
Default

Sorry, I didn't know you could do that. Here it is.
Attached Files
File Type: zip bowgame.zip (0, 78 views)
Cheechman is offline   Reply With Quote
Old 04-24-2002, 09:47 AM   #4
mozilla
mimi
 
mozilla's Avatar
 
Join Date: Jun 2001
Location: the fruhling
Posts: 161
Default

hmm. your zip seems to empty pls. note that there's a file size limitation of 2 mb if i'm right... so slim your fla.

MOZ
mozilla is offline   Reply With Quote
Old 04-24-2002, 05:14 PM   #5
Cheechman
Registered User
 
Join Date: Apr 2002
Posts: 8
Default Hmm

This shouldn't even be close to 2mb. 40k max I would say.
Let me try again, maybe I messed up before.
Attached Files
File Type: zip bowgame.zip (8.3 KB, 94 views)
Cheechman is offline   Reply With Quote
Old 04-24-2002, 06:47 PM   #6
mozilla
mimi
 
mozilla's Avatar
 
Join Date: Jun 2001
Location: the fruhling
Posts: 161
Default

possible solution:

push the arrow mc's in an array and execute on the head mc onEnterFrame a comparison of _x and _y with the array of arrows.

don't forget to remove the arrows from the array (and the stage!) when they exit screen.

did that help?

MOZ
mozilla is offline   Reply With Quote
Old 04-24-2002, 07:06 PM   #7
Cheechman
Registered User
 
Join Date: Apr 2002
Posts: 8
Default Must be me

Everything you said makes sense and sounds like a good idea. However I think that, being new to Actionscript, I'm messing something up. You can see in the posted fla that I've traced the arrow and it doesn't remove even though I try to do it with removeMovieClip(). I guess my main problem is the colision detection. Maybe could you send me a revised fla with what you're talking about? I appreciate all your help, thank you.
Cheechman is offline   Reply With Quote
Old 04-25-2002, 06:19 PM   #8
mozilla
mimi
 
mozilla's Avatar
 
Join Date: Jun 2001
Location: the fruhling
Posts: 161
Default

I'm sorry man I'm really in a time trouble! could not throw an eye into your file sofar - and there won't be time till sunday night...

so anybody - please asist on this!

greez MOZ
mozilla is offline   Reply With Quote
Old 04-26-2002, 03:37 AM   #9
Cheechman
Registered User
 
Join Date: Apr 2002
Posts: 8
Default No prob

Hey, that's no problem. You've already done so much that you didn't have to. And like I said this is kind of a trial run with actionscript I'm in no hurry with it.... just wish I could get the darn thing to work hehe.

Thanks.
Cheechman is offline   Reply With Quote
Old 05-07-2002, 02:04 AM   #10
Cheechman
Registered User
 
Join Date: Apr 2002
Posts: 8
Default Been away

Hi,

I've been away for a while and now I'm back. Just wondering if anyone has had the chance to look this over and if there are any more ideas? Thanks.
Cheechman is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Card Match Game, Colour Me In Pictures and Board Game Total Frigging ActionScript 2.0 4 02-21-2005 01:04 AM
word search game with AS2 black General Chat 5 08-12-2004 10:44 AM
[AS2] Tile game or not tile game? krolben Gaming and Game Development 4 07-28-2004 01:41 PM
Game - freelancer required fatherb Projects and Positions 6 07-18-2003 12:47 PM


All times are GMT. The time now is 11:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.