Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
11th July, 2004 at 22:04:00 -
I'm making a game, and I just came into my...umm...forth problem. I hame my character shooting a bullet, and that bullet needs to ricochet off the walls, and not ramdomly off the walls (like yoshi's island). I know how to reflect the shots with active objects, but not with backgrounds. Is there a way to do it without creating a million or so active objects saying where the shots should reflect to?
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
if the bullet is a ball object you can change its direction easily in the event editor.
but its hard to determine what angle the bullet will move when it has hit the background.
you may have more luck with the 'bullet object' or the 'advanced math object' or the 'direction calculator object' but it will still be quite complicated.
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
12th July, 2004 at 19:39:10 -
Exept you can do it with active objects, I read it in a mirror example. But it would need active object by each background. So it still brings me to my origional problem.
Bullet object, isn't that the exetension that makes particle effects in tgf? Or am I thinking of something else.
Maybe the 'move object' exetension? Is someone advance in that area?
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
Just make the bullet an active object with bouncing ball movement which isn't shot, but is created at the player's action-point, and have it inherit the player's direction (in the orientation/position options thing). Then you can just have it bounce, altering the bounce-security and shit to suit your needs.
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
12th July, 2004 at 19:52:41 -
Hmmm, how did I not think of that. Still the chance it gets stuck in the background...
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
Shouldn't get stuck, I don't think. I used the method for a shrapnel gun on one of my games, and it never got stuck, but I use MMF, maybe it's different in TGF.
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
12th July, 2004 at 20:06:03 -
I'm using MMF too, exept if the objects move, it can get stuck.
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
12th July, 2004 at 20:37:10 -
I'm just going to use thr ball movement. Thanks for the help!
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
What? The eggs in Yoshi's Island don't bounce randomly, they reflect off the walls like they should. Otherwise how are you supposed to beat the plant boss with the bandaid?
n/a
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
12th July, 2004 at 20:45:36 -
"and not ramdomly off the walls (like yoshi's island)."
Let me rephrase that..
and not randomly off the walls (yoshi's islands aiming system was orderly and none of the shots reflected off randomly so you could beat the pirana boss with the bandage).
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
You could give the object an alterable value of 3 or 4 for instance and evertime it hits a wall it subtracts 1
then when the value = 0 destroy the bullet.
(i know this doesnt help your stuck in wall problem)
.
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
13th July, 2004 at 12:10:03 -
Haha, yeah it does, but I need that anyway. Now I need where it gets too far from player, it gets destroyed, but I figured that out. Finished Following eggs last night! (advance match objects are really cool!)
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath