Righto. So I am planning to make a couple of custom stuff, mainly magic effects and stuff like that, and I am griping it piece by piece. What I am mostly stumbling upon is a few things really. I will try to make it clear what I want to know ^^
Sticking a plane to 'ya
Okay. Firstly I really don't understand how you are able to make an object stick to the player. Let's say I got this plane with a alpha and a basic color. I want it to stick to the hand of the player, or the head, or whatever. I want it to follow the players movement. So if the player turns around, the plane/beam follows. If the player jumps, the plane/beam follows. If the .... yeah, you get the idea.
I assume I need to constantly check the X Y and Z axis of the player, and having the plane move accordingly. However, I really can't figure out how to do that, and how on earth that will look smooth. Neither can I understand how to figure out where certain bodyparts of the player is =/ I mean, what is the axis of the hand, the head, etc, of the player? how am I suppose to figure out that.
Next:
being stalked by a ring of fire?
right. So let's say I got this fire effect. It is a ring of fire, simply put. The effect is all nice and dandy, a basic script will make it appear at the player and dissapear after a set ammout of time. Now, I want that 'lil ring of fire to follow the player. I mean, let's say I make this protection orb. Won't do me much good if the thing is blocking me and not moving?
Again, I guess I would have to check the axis of the player and move accordingly. I guess having Z to 0 at all times to make it stick to the ground?
And again, I can't see how this will not become buggy. Let's say the script check where the player is every... 0.01 second, it gotta become kinda .. you know ... glitchy? I also don't want to make a script which is eating too much of the game.
3 orbs chasing 1 target
Weee... Just played Metroid prime 1 on the Gamecube and 'boy the Wave beam gave me an orgismic feeling! But ... even if I somehow managed to make thoose 3 orbs, I got no idea how to make them shoot from the players hands, and actually chase the target, then hit them. I mean, how do you do that! I really got no clue here.. would really LOVE answer here. Would open up the door for a lot of effects on my part =)
Here is a link to a picture of the effect, atleast a little of it. You get the point:
http://www.dolphin-emu.com/images/photoalbum/album_1/emu-gc-mp-12.jpg
Hum.... I believe I got more, but can't seem to remember what >.> so, this is what I basically got. Let me sum it up short:
How to make an object follow the player
e.g How to use axis(Z,X,Y) scripts
And
How to make a object stick to the player, like the hand, and move with it
e.g check axis and rotate accordingly, smoothly.
Any information will be great ^^ In the meanwhile I am going to stick to the CS Wiki and experiment with the axis functions ... would still love a good answer here!
Cheers,
Matth