The New (maybe not improved) x.t.r.GRAPHICS QB Site!!
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
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)....
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"
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
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??
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??
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
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...
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"
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
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.
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.
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Um dude, I ment you wrote it like a word problem.. if you did it like this..Mitth'raw'nuruodo wrote:Ummm...dude QB is Math.....
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
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
If you learn how to type properly I might have understood that that's what you meant.Mitth'raw'nuruodo wrote:Hey Z!re why didn't I think of that... ...oh, wait I did...
If you read my other post that's what I did...
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.
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact: