The Daily Click ::. Forums ::. Klik Coding Help ::. sports game AI
 

Post Reply  Post Oekaki 
 

Posted By Message

christina neo



Registered
  15/09/2006
Points
  5
17th September, 2006 at 04:01:46 -

I'm making a remake of Ballistix, an old game by Psygnosis.
You control a pointer that shoots ammo towards a ball. The purpose is to score a goal against a slightly tilted game board.

Here's the file
http://www.filefactory.com/file/edbd2d/

Here's the AI for the enemy arrow that I created:

http://www.filefactory.com/file/ddccd5/

it's not much, and like the good people at ClickTeam Central said, I'm going to have to use some sort of finite state machine AI as well..

But I'm still proud

any thoughts/creative ideas?

kisses
christina

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
17th September, 2006 at 05:41:15 -

omg, female clickers are taking over TDC

 
n/a

christina neo



Registered
  15/09/2006
Points
  5
17th September, 2006 at 07:07:48 -

ok I need help!

Assuming the enemy arrow has
1.a targeting phase
2. a shooting phase

I want my targeting phase to be like this:

A test object ("Scout") that revolves around the ball like a satellite, with a radius of R. This object tests all positions around the ball for perfect linear alignment of: the "Scout", the "Ball" and the "Goalpost". Essentially it attempts to find the perfect line of sight from the Scout to the Goalpost, including the Ball.

I was thinking I could do it with 1-pixel ActiveObjects ("Particle") shot from the Scout towards the Ball. Everytime a "Particle" collides with the Goalpost, the X/Y coordinates of the position where it was shot from, are stored as a desirable position, and the Enemy Arrow attempts to go near it.

Also, the Scout will try other radii around the ball (R plus/minus 100 pixels), effectively testing all (or most) points around the Ball.

Is there any way MMF2 can check all of these points using only math? Is there any other line-of-sight algorithm I can use, without having to rely on shooting particles?

I'd appreciate an example, or a link to an article..

kisses

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
17th September, 2006 at 07:40:50 -

Don't forget to have there be a small chance that your entire team goes on the DL, they play like crap and are totally out of the playoff hunt in a 3-4 week span. Why, Red Sox, Why?!!

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

christina neo



Registered
  15/09/2006
Points
  5
17th September, 2006 at 07:43:53 -

ahahaha Del Duio.

P.S.
( http://www.filefactory.com/file/e6208f/ <--- the Scout object, done with an animated activeObject particle)

 
n/a

Reno



Registered
  11/01/2005
Points
  906
17th September, 2006 at 10:10:14 -

How many female clickers are there in TDC? *ponders*

 
Reborn Again

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
17th September, 2006 at 11:22:54 -

Counting Christa Neo, I know of 3. I recall there being a 4th one too.

 
http://www.facebook.com/truediamondgame

christina neo



Registered
  15/09/2006
Points
  5
17th September, 2006 at 12:05:39 -

oh my Stars! Did I just ask for help with coding in a *social column*???

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
17th September, 2006 at 12:31:59 -

No, you just have to remember that a large portion of our membership is adolescent boys who go crazy at the mere thought of a female clicker.

Plus, we drift off topic alot here. Welcome to it.

Give it a few days and you'll get your answer.

 
Craps, I'm an old man!

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
17th September, 2006 at 16:04:02 -

The difference between responses here and at the Clickteam forums is all too evident =/

This won't be much help either - I think you might be able to check for points/areas using the Overlay object, but I really have no idea how to use it.

 
http://www.davidn.co.nr - Games, music, living in America

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
18th September, 2006 at 08:25:34 -

Man that was an awesome game.

Is there any way MMF2 can check all of these points using only math?
Not any way I can think of off the top of my head. You could cheat though and use a 1px detector that runs through the possible paths via fastloop. A better idea might be to start your checking not from the enemy, but from the ball, finding possible angle of attacks and then predicting where the enemy would have to be to achieve them.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click