Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
27th June, 2003 at 01:22:11 -
If the aimer is mouse controlled, just set the scrolling to the aimer. Then if you want 2 get tricky - have like a sniper view, so if the player is moving, scroll on the player. And if he's not, scroll on the aimer.
Yeah, and aimer like worms is what I'm looking for. Another example would be the one in Dark War II, except that it would be able to do a full 360 rotation.
Shab: use z? I should explain that I'm using MMF and therefore I have no "z" value.
I meant the keys on the keyboard, sorry traditional japanese control scheme's (I was born in the wrong country). But yeah here, I'll text draw it (lucky you)
Normal-
* Crosshair
O Character
presses Z
* Crosshair
O Character
presses Z some more
*
O
------------
See? the crosshair is rotating around the character using the Z and X keys to control it.
Is that a little clearer?
So you want to rotate the crosshair around the character.
I don't know the code for it, but with the
advanced math object, you can create a circle like
movemnt with increasing and decreasing angle.
You even can go 360 degrees.
In order to understand this you need to know some
trigonomitry.
in this case the start X and Y co-ordinate would be the players co-ordinates and angle would be added to or subtracted from based upon the user pressing up or down or what ever keys you choose and the radius would be a distance of how far you want the aimer from the player.
I believe you need the advanced math object for TGF to use sin and cos but i aint sure, but you can do this in MMF withough it.
Or.. you could always jerry rig it. If you make a big DOME shaped active object, make it invis. And then have the aimer outside the dome. If the aimer colides with the dome, it stops. And when player presses down, it adds to Y cord by 1. So it may slide down the dome, just make sure its very smooth. It sounds very unstable, but you could kinda work with the idea.
We are the music makers, we are the dreamers of dreams...
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
2nd July, 2003 at 18:57:50 -
(Pirate Sound) Aaaaargh, maths would be the way to do everything aaaaaargh! There was an example on this, but its just what Santa said, Maths!
LOL! are you all stupid and always do it the hard way!? just put the hotspot of the crosshair 50(distance between crosshair and the char.) pixels to the left then go out of the picture editor and hit the rotate button. now you should have 32 directions of the object. then make the crosshair have racecar movement with NO speed. Now make an always event that sets the position of the crosshair to the same position as the char. ...NOW, YOU, ARE, DONE!X)
Beware of life ...so far noone have survived it.......
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
3rd July, 2003 at 05:15:57 -
Yea Dan, that's not a very good way to do it. Maths is the way to go. You can have 360 angles and more if you then times that to get 3600, then even more! So basically you can have unlimted angles with maths. Click products alone - 32. I hope MMF 2 has more though .
Even though you can get that many angles with math, can you even shoot an object that many angles in TGF?
I agree with Daniel's way, only cause its simple and works with TGF without the Cos and Sin. (Dunno bout math object) The math would be well worth it if you had mmf, and it served its purpose better in its situation. Some situations, just dont need that many angles. I dunno, probly need more info before deciding wich is more effective and worth it.
We are the music makers, we are the dreamers of dreams...