Page 5 of 6

Posted: Tue Feb 08, 2005 6:12 pm
by Rattrapmax6
:) , yep, I'll be nice to all of my consumers,. heh heh,.. :wink:

Posted: Tue Feb 08, 2005 8:37 pm
by Mitth'raw'nuruodo
he, he...

Well I finished my ship, background, that pestky error, and all weapons up to level 5....

I now am going to tackle the seeking missle weapon....Any ideas?

(the seeking missle will be a 4 px head in a pyramid[1px on top, 3 under it], the tail will be 20 px long grad in color)

Any ideas on how to do this?

Mabey I could make it like that old worm-apple game (same algo)....

Posted: Tue Feb 08, 2005 9:51 pm
by Rattrapmax6
:shock: Somehow I get the feeling yours will be betta,. oh well, hehe,..

Um,. have it check the enemies x,y.. or if you got more than one enemy, have it pick one first.. but check the x, y.. then it adds or subtract the y to line up with the enemy..

Have it go slow so it want run off the top of the screen b4 it picks off a badguy.. Was that any help?? :wink:

Posted: Wed Feb 09, 2005 3:20 pm
by Mitth'raw'nuruodo
Yes but I have a better way....
grad tail pixs:
In loop:

If head is <0 then startdeleteofmissle (sub that will go off of screen)
If enemy is still on screen then or if y of head is still > than the enemy then
the last pix of tail = the second to last pix of tail
the second to last pix of tail = 3rd to last pix of tail
etc. until first pix of tail = head.
get the x of enemy
if head.x > enemy then head.x = head.x-1
if head.y = head.y - 1
etc.
else
get new enemy to target

20 pixs on the tail should't slow it down considerably....
That's a lot better algo...Same as that worm/apple one...

Posted: Wed Feb 09, 2005 4:51 pm
by Rattrapmax6
:shock: Wow, what ever you said, sounds like a good Idea,. :wink: :lol: hehe,.

Posted: Wed Feb 09, 2005 5:08 pm
by Mitth'raw'nuruodo
Ummm...ok....Were you sarcastic about not knowing what I typed?

Posted: Wed Feb 09, 2005 5:27 pm
by Rattrapmax6
I might under QB, but I have a hard time looking at a presuedo code doing math... Math is numbers, :wink: , that what you put is words my friend,. he he,.. :lol:

Posted: Wed Feb 09, 2005 6:14 pm
by Mitth'raw'nuruodo
Ummm...dude QB is Math.....

Posted: Wed Feb 09, 2005 7:21 pm
by Z!re
You could just use a simple particle system.

Make each point in the tail follow the one before it.

Point 1 follows head
Point 2 follows point 1
Point 3 follows point 2
[...]

Then just move the head, the others will hunt the head.

Give them a starting positin that is the shape you want, and then give them all the same speed.
Will work perfectly for what you want.

Posted: Wed Feb 09, 2005 7:42 pm
by Rattrapmax6
Mitth'raw'nuruodo wrote:Ummm...dude QB is Math.....
Um dude, I ment you wrote it like a word problem.. if you did it like this..

Code: Select all

IF sx > esx THEN esx = esx + 2
IF sx < esx THEN esx = esx - 2
IF esx = sx THEN CALL Fire
IF i <= 3 THEN PUT(esx, esy), eship1, PSET
IF i > 3 THEN PUT(esx, esy), eship2, PSET
Which is part of my SEEKing A.I.. I'd took more time to understand it.. I can read over word probs, but I don't like to,. as for math, I enjoy Phisics, and I am looking forward to Calculas when I become a autodesigner,. :wink: And Trig sounds sweet too,. hehe.. :roll:

Posted: Wed Feb 09, 2005 8:54 pm
by Mitth'raw'nuruodo
Hey Z!re why didn't I think of that... :shock: ...oh, wait I did...

If you read my other post that's what I did...

Blah...I hate trig...I had to learn it on my own for the 3D rotations....Blah :x

Posted: Thu Feb 10, 2005 3:16 pm
by Rattrapmax6
:D , Well, if you enjoy the 3D, then careless about the trig,. :wink: just learn what you need to get the job done..

Posted: Thu Feb 10, 2005 3:25 pm
by Z!re
Mitth'raw'nuruodo wrote:Hey Z!re why didn't I think of that... :shock: ...oh, wait I did...

If you read my other post that's what I did...
If you learn how to type properly I might have understood that that's what you meant.

From your post I thought you meant changing the position of the last pixel, to that of the previous, etc.

Which is not the same as what I was suggesting.


But I am sorry for trying to help. Don't worry, wont happen again. Jerk.

Posted: Thu Feb 10, 2005 3:46 pm
by Rattrapmax6
:) , Umm, that "Jerk" at the end of your post Z!re,. all I can think is..

"Here we go again!!" :shock: , what happen to my site? heh heh,. it was once upon a time the subject of this thread.. :wink:

Posted: Thu Feb 10, 2005 3:47 pm
by Mitth'raw'nuruodo
Well, I'm sorry for YOU not being clear heh... :P

Fine...

Posted: Thu Feb 10, 2005 3:49 pm
by Rattrapmax6
:shock: My above prediction post didn't last 3 mins b4 coming true, wow..

:) , Betta find my rusty old DATA bot,. :wink:

Posted: Thu Feb 10, 2005 3:59 pm
by Mitth'raw'nuruodo
Hmmm...didn't see that...well...lol :lol:

Oh this was your site's thread, eh? I forgot that...he he. :D

Posted: Thu Feb 10, 2005 4:10 pm
by Rattrapmax6
Heh heh, never mind, I fell off topic too.. :wink:

Posted: Thu Feb 10, 2005 4:12 pm
by Mitth'raw'nuruodo
Heh, ya I was joking.....LOL :lol:

Posted: Thu Feb 10, 2005 4:15 pm
by Rattrapmax6
How is my new site anyway, no1s commented fully yet.. just alot of "Change your BMPs to GIF or PNG" over at QBnews,.. and when I did no more comments,.. So??