The New (maybe not improved) x.t.r.GRAPHICS QB Site!!

Announce and discuss the progress of your various programming-related projects...programs, games, websites, tutorials, libraries...anything!

Moderators: Pete, Mods

Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:) , yep, I'll be nice to all of my consumers,. heh heh,.. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post 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)....
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post 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...
Last edited by Mitth'raw'nuruodo on Wed Feb 09, 2005 5:07 pm, edited 1 time in total.
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:shock: Wow, what ever you said, sounds like a good Idea,. :wink: :lol: hehe,.
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Ummm...ok....Were you sarcastic about not knowing what I typed?
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Ummm...dude QB is Math.....
"But...It was so beutifully done"
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post 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.
I have left this dump.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post 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
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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..
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post 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.
I have left this dump.
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Well, I'm sorry for YOU not being clear heh... :P

Fine...
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

:shock: My above prediction post didn't last 3 mins b4 coming true, wow..

:) , Betta find my rusty old DATA bot,. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post 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
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post by Rattrapmax6 »

Heh heh, never mind, I fell off topic too.. :wink:
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Heh, ya I was joking.....LOL :lol:
"But...It was so beutifully done"
Rattrapmax6
Veteran
Posts: 1055
Joined: Sun Jan 02, 2005 2:11 pm
Location: At my computer
Contact:

Post 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??
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
Post Reply